Wednesday, June 17, 2015

Why AngularJS awesome...?

AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinctly. Angular's data binding and dependency injection eliminate much of the code.

Angular is client-side MVC framework, it extends HTML with new attributes. it's perfect for Single Page Applications (SPAs).

Basics of AngularJS: 

ng-app : defines AngularJS application

ng-init : initialize AngularJS application variables

ng-model : binds the value of HTML controls to application data
ng-bind : binds application data to the HTML view
ng-controller : defines the controller
ng-repeat : clones HTML elements once for each item in a collection

*** We can use data-ng-, instead of ng-, if you want to make your page HTML valid


HTML Elements:

ng-disabled - bind data to the disabled attribute

ng-show - shows or hides an HTML element

ng-hide - hides or shows an HTML element
ng-click - defines an AngularJS click event


B' happiiiiiii always..............!

1 comment: