Angular 1.1.5 added support for ternary operators:
{{myVar === "two" ? "it's true" : "it's false"}}
More Related Contents:
- How to call a method defined in an AngularJS directive?
- How to use a keypress event in AngularJS?
- How do I store data in local storage using Angularjs?
- How to Loop through items returned by a function with ng-repeat?
- Angularjs dynamic ng-pattern validation
- Is there a way to make AngularJS load partials in the beginning and not at when needed?
- What’s the difference between ng-model and ng-bind
- Angular js init ng-model from default values
- Easiest way to pass an AngularJS scope variable from directive to controller?
- What’s the most concise way to read query parameters in AngularJS?
- Implementing loading spinner using httpInterceptor and AngularJS 1.1.5
- How do I ignore the initial load when watching model changes in AngularJS?
- How to get element by classname or id
- Angular and UI-Router, how to set a dynamic templateUrl
- Enable angular-ui tooltip on custom events
- Accessing attributes from an AngularJS directive
- AngularJS: Upload files using $resource (solution)
- Angular Js – set token on header default
- AngularJs ReferenceError: $http is not defined
- Modules and namespace / name collision in AngularJS
- RegEx for no whitespace at the beginning and end
- Can you change templateUrl on the fly?
- AngularJS – wait for multiple resource queries to complete
- angularjs move focus to next control on enter
- AngularJS – Get List of All Registered Services?
- How to master AngularJS? [closed]
- angularjs 1.x support lifecycle and end-of-life
- How to integrate AngularUI to AngularJS?
- Binding inputs to an array of primitives using ngRepeat => uneditable inputs
- Two views in one AngularUI Router state sharing scope