Lets say you have an array that is rendered in a ul
with an li
for each element and a property on the controller called selectedIndex
.
Check this.
The infamous AngularJS if|else
statement!!!
When I started using Angularjs, I was a bit surprised that I couldn’t find an if/else statement.
So I was working on a project and I noticed that when using the if/else statement, the condition shows while loading. You can use ng-cloak to fix this.
Show this line
Show this line instead
.ng-cloak { display: none }
Thanks amadou