javascript - ng-repeat loop more than the number of elements -
I implement ng-repeat with
ng-style I am trying to; . It works perfectly though, I do not understand why my method tells me more than the number of elements in my
ng-repeat !
Do you know why?
To complete my explanation, I think:
I think that When your HTML code is compiled, it issues ng-style instructions even when there is no data (when objects == faucet). After that your controller makes changes to $ scope.items, forcing other slaves to $ scope.getStyle ().
I think if you put ng-if = "item! = Zero" ng-repeat, then the function will be called only 5 times.
Comments
Post a Comment