Conditionally show content in AngularJS templates using ternary operators
As of Angular version 1.1.5, ternary operators are supported in templates. The following snippet will conditionally show the text myBoolean is true
or myBoolean is false
depending on the value of myBoolean
{{ myBoolean ? "myBoolean is true" : "myBoolean is false" }}