This is part five of my look into AngularJS.
- AngularJS Intro and Setup
- AngularJS and Modernizr
- AngularJS and jQueryUI DatePicker
- AngularJS with TextArea and Scroll To
- Coming soon…
AngularJS functions that can be used instead of using angular.isUndefined() can be used instead of doing . Below is a list of some these functions which can be found in the AngularJS documentation.. For instance
Strict Contextual Escaping (sce)
Include the AngularJS service $sce in the controllers.js.
Then in HTML:
For more information on $sce head over and read the AngularJS documentation on $sce.
For more on ngSanitize read: Using ngSanitize to render HTML strings in Angular
A single = is an assignment
A double == is an equal
A triple === is a strict equal to
Two references that might be helpful:
- Triple (3) Equal Signs [duplicate]
More examples can be found on GitHub: True, False and Equal in JS.