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>
</div>