javascript - How to pass a ng-repeat variable in ng-if? -
I have ng-repeat in the first line of code, in the next line I need to create a dynamic variable Get in the twilight.
Code will look something like this:
& lt; Div ng-repeat = "head in headofhead" & gt; & Lt; Span ng-if = "canIbecreated _ {{head}}"> I have been made !! & Lt; / Span & gt; & Lt; / Div & gt;
Where
Saurofide = ["1", "2", "3"];
But this creates an error, while in the same way I can easily pass {{$ index}}.
Why are the rings present in Anguluj?
I do the controller
var canIbecreated_1 = "false"; Var canIbecreated_2 = "true"; Var canIbecreated_3 = "false";
To make the crate and not to make the duration.
... ng-if = "some funk (head)" ... < / Code>
ng-repeat
should do this trick inside the block.
Comments
Post a Comment