Misko Hevery, a Google employee, developed AngularJS. First version 1.0 of AngularJS was released in 2012. Now AngularJS is fully supported by Google. HTML is extended by AngularJS. It provided new attributes to HTML. AngularJS is good for Single Page Applications (SPAs). AngularJS is a Javascript framework. Angular Directives extend the HTML attributes. AngularJS extends HTML with data-ng-directives or ng-directives.
The ng-app: It defines an AngularJS application.
The ng-model: It binds the value of HTML controls like input, select, text area etc to application data.
The ng-bind: This directive binds application data to the HTML view to display output.
For Example:
AngularJS can be added to a web page with a script tag.
[/html]
See given example:
My Name:
[/html]
In above example,
ag-app directive states that this
element is start of the AngularJS application.
ng-model directive binds value of input control (text field) to mname(application data variable).
ng-bind directive binds innerHTML of element to value of application variable mname.
Another directive – ng-init: This directive is used to initialize angularJs application, see example:
my name is
[/html]
Note: To make the page HTML valid, data-ng- should be used in place of ng- directives.
For example:
my name is
[/html]
A Noun is the name of a person, place or thing. or Name of anything is noun. For example: Sita…
AngularJS expressions contain operators,literals, and variables. AngularJS expressions can be written inside HTML while JavaScript expressions can't be. AngularJS expressions…
Some sentences are given below. Choose the nouns and mention the type of noun whether they are proper noun, common…
Modules are containers for appication controller. They contain different parts of an application. [html] {{ state + " " +…
Using Directives you can extend HTML attributes. In AngularJS you can define your own directives while it has its own…