我正在使用Angular 4并安装了Angular Material 2,因为我喜欢组件的外观。
所以现在我拥有所有组件并想要创建一个布局。
我知道它有Angular Flex布局,但老实说我不太了解Flex那么我正在考虑使用Bootstrap的4 Grid来整理布局。
我有什么理由不在Angular Material2中使用Bootstrap的网格吗?
没有必要使用bootstrap grid
和angular 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
内部
您可以考虑之前的答案。但是,如果你觉得自己更适合使用bootstrap,你可以阅读这篇文章:The Best Parts of Bootstrap 4 You are Missing in Angular Material
;)