What are Directives in AngularJs?
In Angularjs, The HTML attributes and binding controls are called directives.
All HTML attributes attached with prefix "ng-". The directives are
Basic Directives
- ng-app : this is used for initializes to application
- ng-init : this is used for initialize to application data
- ng-model : this is used for binds HTML controls to application data
- ng-Controller : this is used for Attached a controller class to view.
Others then basic Directives
- ng-repeat : this is used for bind to repeated an HTML elements
- ng-if : this is used for bind an HTML elements with condition
- ng-grid : this is used for bind data collection to an HTML elements
- ng-show : this is used for Show the HTML elements
- ng-hide : this is used for Hide the HTML elements
- ng-class : this is used for CSS binding class
- ng-src : this is used for pass the URL image etc.
- ng-switch
- ng-bind etc.
Event Listener Directives
- ng-click : This is a click event to bind on HTML elements
- ng-dbl-click
- ng-mousedown
- ng-mouseup
- ng-mouseenter
- ng-mouseleave
- ng-mousemove
- ng-mouseover
- ng-keydown
- ng-keyup
- ng-keypress
- ng-change
Types of Directive
- Element directives
- Attribute directives
- CSS class directives
- Comment directives
In Angularjs, The HTML attributes and binding controls are called directives.
All HTML attributes attached with prefix "ng-". The directives are
Basic Directives
All HTML attributes attached with prefix "ng-". The directives are
Basic Directives
- ng-app : this is used for initializes to application
- ng-init : this is used for initialize to application data
- ng-model : this is used for binds HTML controls to application data
- ng-Controller : this is used for Attached a controller class to view.
- ng-repeat : this is used for bind to repeated an HTML elements
- ng-if : this is used for bind an HTML elements with condition
- ng-grid : this is used for bind data collection to an HTML elements
- ng-show : this is used for Show the HTML elements
- ng-hide : this is used for Hide the HTML elements
- ng-class : this is used for CSS binding class
- ng-src : this is used for pass the URL image etc.
- ng-switch
- ng-bind etc.
- ng-click : This is a click event to bind on HTML elements
- ng-dbl-click
- ng-mousedown
- ng-mouseup
- ng-mouseenter
- ng-mouseleave
- ng-mousemove
- ng-mouseover
- ng-keydown
- ng-keyup
- ng-keypress
- ng-change
- Element directives
- Attribute directives
- CSS class directives
- Comment directives
0 comments:
Post a Comment