What are predefined classes for grid layout in Angular Material? We have "row","col-sm-4"
etc.. classes in bootstrap. Do we have these type of classes in Angular Material 2?
Thanks.
Angular Material Grid Layout
angularangular-material2material-design
Best Answer
I'll give you the basics.
In Angular Material (for Angular 2/4) the most commonly used attributes are:
You can also use postfix as
fxLayout.xs
and so on to apply rules only for specific resolution.For more info you can look through the docs: https://github.com/angular/flex-layout/wiki/API-Documentation
To play around with alignment, you can use the demonstration from Angularjs Material resource (it's totally the same as for Angular Material for Angular 2/4): https://material.angularjs.org/latest/layout/alignment
And another one useful link: https://tburleson-layouts-demos.firebaseapp.com/#/docs