Check http://www.codinginsight.com/angularjs-if-else-statement/
Shameful expression angularjs if else !!! When I started using Angularjs, I was a little surprised that I could not find the if / else statement.
So, I was working on a project, and I noticed that when using the if / else statement, the condition is displayed at boot time. You can use ng-cloak to fix this.
<div class="ng-cloak"> <p ng-show="statement">Show this line</span> <p ng-hide="statement">Show this line instead</span> </div>
.ng-cloak {display: none}
Thanks amadou
source share