Saturday, 28 May 2016

15 : Anjularjs init directive

 init is a angularjs directive which helps to initialize some values to the object at initialize state of object like

Age : bydefault zero,

   Age : <input type="text" ng-init="age=0" ng-model="age" />


another example is 


we can intialize custom objects, arrays for testing the design of page. help for test data

No comments:

Post a Comment