Tuesday, 30 August 2016

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>


No comments:

Post a Comment