带有Bootstrap 4网格的角度材料2

问题描述 投票:6回答:2

我正在使用Angular 4并安装了Angular Material 2,因为我喜欢组件的外观。

所以现在我拥有所有组件并想要创建一个布局。

我知道它有Angular Flex布局,但老实说我不太了解Flex那么我正在考虑使用Bootstrap的4 Grid来整理布局。

我有什么理由不在Angular Material2中使用Bootstrap的网格吗?

javascript angular angular2-template angular-material2
2个回答
6
投票

没有必要使用bootstrap gridangular material2

我不太了解Flex,所以我正在考虑使用Bootstrap 4 Grid来整理布局。

我不认为你是对的,因为为了使用flex-layout,你根本不必是一个flexbox css专家。

Flex-layout只是flexbox css上的一个抽象API,它很容易掌握。只需看看生活样本https://tburleson-layouts-demos.firebaseapp.com/,并检查这个ngair插曲https://www.youtube.com/watch?v=TewrxMo_QAs,从其创建者Troy Burleson获得一些有趣的flex-layout内部


1
投票

您可以考虑之前的答案。但是,如果你觉得自己更适合使用bootstrap,你可以阅读这篇文章:The Best Parts of Bootstrap 4 You are Missing in Angular Material

;)

© www.soinside.com 2019 - 2024. All rights reserved.