Wednesday, 31 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>

No comments:

Post a Comment

Dear Readers, Please post your valuable feedback in the comment section if you like this blog or if you have any suggestions. I would love to hear the same from you. Thanks