Angular JS model and controller

Angular JS Model:

ng-model directive in Angular JS is use to bind the value of an HTML control to any variable.

<div ng-app=”testApp” ng-controller=”testCtrl”>
    Name: <input ng-model=”name”>
    <h1>Hello : {{name}}</h1>
</div>


Leave a Comment

RSS
YouTube
YouTube
Instagram