An Introduction to the AngularJS Basics Directives Part1

ngApp The first ngApp found in the document is used to define the root element to auto-bootstrap an application. ngapp is typically placed near the root element of the page like in the body or html tag. ng-app executes at priority level 0. ngInit This directive is used to initialize the application data. ng-init executes at priority level 450. ngRepeat This directive is used to iterate over the properties of an object. ng-repeat executes...

Two way data binding vs Traditional Approach in AngularJS with example

Two-way data-binding Two way data binding means automatic synchronization of data between the model and view components. Whenever the model changes,angular will cause the view to automatically update leading to no explicit DOM (Document Object Model) manipulation and vice versa. Two way binding example in AngularJS <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"> </script> <div ng-app=""> Name:...

Advantages and Disadvantages of AngularJS

Key Features of AngularJS Two-way data-binding Two way data binding means automatic synchronization of data between the model and view components. Whenever the model changes,angular will cause the view to automatically update leading to no explicit DOM (Document Object Model) manipulation and vice versa. READ MORE Minimal Code AngularJS reduces the number of LOCs when compared to Javascript/JQuery. Directives At a high level, directives are...