Tuesday, 24 November 2015

Introduction to AngularJS

AngularJS is JavaScript framework which simplifies binding of JavaScript object to html UI elements.

AngularJS makes use of directives to give new behavior to html UI elements. Some examples:-

  1. ng-ap  -  Used to initialize angular application.
  2. ng-init  -  Used to initialize angular application data.
  3. ng-controller - Used to bind $scope which is a JavaScript object to HTML UI element.
  4. ng-repeat - Works like a for loop.
  5. ng-disabled -Takes boolean value used to enable or disable html elements.
  6. ng-show - Accepts boolean value used to show or hide html elements.
  7. ng-hide - Accepts boolean value used to show or hide html elements.
  8. ng-bind - Used to bind model to HTML UI element.
  9. ng-model - binds the value of the input field to the application variable name.
  10. ng-if - Accepts boolean value
  11. ng-click - Used to execute a function.
  12. ng-submit - Used to execute a function. 

No comments:

Post a Comment