Angularjs builtin directives:
In this chapter we will get introduced some utility directives provided by Angular for ease of programming. Here is the list of directives we will take a look at.
- ng-non-bindable: Angular does not consider content inside
{{ }}
as part of an expression - ng-init: Initialize model variables in HTML
- ng-click: Write expressions in HTML for onClick on various HTML elements
- ng-disabled: Conditionally disable an item using Angular Expressions
- ng-repeat: Use for loop in HTML to generate multiple elements
- ng-class: Write expressions in HTML to conditionally apply CSS
- ng-src: Write image tags
<img>
with dynamic links in HTML - ng-switch: Switch case in HTML to render HTML elements conditionally
- ng-controlletr: to activate the controller in the page or logic
As a practise exercise you may want to try the remaining directives supported by Angular on your own. You may want to skip reading about the following directives because we will cover them extensively in the forthcoming chapters
- ng-view
- ng-include
- ng-form
- ng-transclude
- ng-options
- ng-csp
No comments:
Post a Comment