AngularJS directives with ng prefix such as- ng-app, ng-init, ng-model and these directives extends the HTML attributes.

The ng-app directive initializes an AngularJS application.

The ng-init directive initializes application data.

The ng-model directive binds the value of HTML controls to application data such as-input, select, textarea.

<div ng-app=”” ng-init=”lang=’PHP'”>

<p>Language: <input type=”text” ng-model=”lang”></p>
<p>You typed: {{ lang}}</p>


News Reporter
IT Software and web development, Core PHP, JavaScript, JQuery, HTML, CSS, CakePHP, Angularjs, Codeigniter etc.

Leave a Reply

Your email address will not be published. Required fields are marked *