if else statement in AngularJS templates
Angularjs (versions below 1.1.5) does not provide the if/else functionality . Following are a few options to consider for what you want to achieve: (Jump to the update below (#5) if you are using version 1.1.5 or greater) 1. Ternary operator: As suggested by @Kirk in the comments, the cleanest way of doing this would be to … Read more