pass angularjs variable to jade while loop condition -
pass angularjs variable to jade while loop condition -
i want pass angularjs variable {{test}} jade while loop status statement. tried this:
ul - var = 0 while < {{test}} li i++
but got syntax error. right way this?
i sit down downwards , think different. can create work, messy , uneccesary!
i assume test array?
rewrite ul tag this:
ul(ng-repeat="t in test") li t
tada! :)
this cause angular run through whole array , create li tag each index in array!
jade
Comments
Post a Comment