What is “ng-model” directive in AngularJS Applications ?

ng-model directive defines the model/variable to be used in AngularJS Application. In following example, we’ve defined a model named “name”.

Sample using “ng-model” directive
<div ng-app = “myApp”>

<p> Name: <input type = “text” ng-model = “name“></p>
</div>