How to create a space between angular ng-repeated

2019-09-10 02:04发布

The code is:

.container
  my-directive(ng-repeat="item in items", item="item")

My goal is to use that space with justify to create an evenly spaced grid of an unknown number of divs.

1条回答
Bombasti
2楼-- · 2019-09-10 02:25

It seems the issue is with ng-repeat. Here's a jade solution:

.container
  my-directive(ng-repeat-start="item in items", item="item")
  span(ng-repeat-end) #{' '}

Here's an equivalent solution for HTML I found: https://stackoverflow.com/a/19507046/4760334

查看更多
登录 后发表回答