How to create a new row of cards using ngFor and bootstrap 4

前端 未结 3 1532
猫巷女王i
猫巷女王i 2021-02-06 00:14

I\'m trying to use the card group functionality of Bootstrap 4 with Angular ngFor.

Here is the HTML I have for now, but I can\'t find how to break to a new

3条回答
  •  孤独总比滥情好
    2021-02-06 00:48

    You need a wrapping div with the class col-4 arroud the

    with card class. thats how grid layout works.

    see using grid markup section here: https://v4-alpha.getbootstrap.com/components/card/#using-grid-markup

    so:

    
    

    sample plunker: https://plnkr.co/edit/8LDBMorXBB1OqI0bolS6?p=preview

提交回复
热议问题