How to create a space between angular ng-repeated divs in jade?

不打扰是莪最后的温柔 提交于 2019-12-12 03:44:31

问题


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:


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



来源:https://stackoverflow.com/questions/39026435/how-to-create-a-space-between-angular-ng-repeated-divs-in-jade

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!