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

后端 未结 4 1607
有刺的猬
有刺的猬 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:55

    I have created something similar to what you may want. The md-card is wrapped within a div having layout-wrap. The divs are dynamically generated after reading.

    Here is the code :

    user avatar

    {{user}}

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua

    Save View

    The cards width can be adjusted with inline styling, hope it helps.

提交回复
热议问题