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>


Comments

Popular

What's new in C# 6.0 language - All new features of C# 6.0 for developers

SharePoint Interview Questions and Answers