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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -