Tuesday, April 21, 2015

AngularJS directives

AngularJS directives are used to extend HTML. They are special attributes starting with ng-prefix. Let us discuss the following directives:

 ng-app - This directive starts an AngularJS Application.

 ng-init - This directive initializes application data.

 ng-model - This directive defines the model that is variable to be used in AngularJS.

 ng-repeat - This directive repeats HTML elements for each item in a collection.

No comments:

Post a Comment