Skip to main content

Posts

Showing posts with the label What is AngularJs Directives?

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 ...