how do i create a grid of cards with angular material?

后端 未结 4 1604
有刺的猬
有刺的猬 2021-02-19 06:06

I am trying to create a grid of three cards per row using ng-repeat. I have a normal array of javascript objects attached to the scope. The code below will create a fresh row fo

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-19 06:42

    I just needed this; here's a more comprehensive solution, only using the layout features, for 3 columns:

    
        
    // ...

    The card must be wrapped inside a correctly-sized div to keep the margins under control and avoid overflow.

提交回复
热议问题