Wednesday 4 March 2015

Angular JS

Introduction

Angular JS is extend the new attributes of HTML and facilitated the developer to create Single Page Application (SPAs). Consist of 3 ng-directives:
  1. ng-app
  2. ng-model
  3. ng-bind
ng-app

Inform the Angular JS application the "owner".of this <div> element

ng-model

Binds the input fields to application variable name

ng-bind

Binds the innerHTML of the <p> element to the application variable name  

No comments:

Post a Comment