Directives In angularJS

Below are the some important directives
  • ng-app :- Defines the root element of the application
  • ng-bind :-Bind the content of the html element to the application data
  • ng-blur   :-Specifies the behavior on blur event
  • ng-change :-Specifies an expression to evaluate when content is being changed by the user
  • ng-checked:-Specifies the element is checked or not
  • ng-class :-Specifies the CSS class on html element
  • ng-class-event :-Same as ng-class but effect only even rows
  • ng-class-odd :-Same as ng-class but effect only odd rows
  • ng-click :-It work as click event
  • ng-hide :- Hide or Shows html elements
  • ng-if  :-Removes the html elements if condition is false
  • ng-include :-Include the html to the application

No comments:

Post a Comment