Creating Grid of Cards Dynamically using Angular Material 2

前端 未结 2 908
无人及你
无人及你 2021-01-01 21:07

Hi I am new to Angular Material and I want to create grid of cards of the form r rows c columns (r X c) dynamically. e.g If I have 5 u

2条回答
  •  臣服心动
    2021-01-01 21:33

    I think that the most elegant solution you can afford is putting a mat-card or a custom component which use mat-card with fxFlex value inside a div or whatever element with fxLayout="row wrap like this:

    {{obj}}

提交回复
热议问题