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

Top 8 C# 6.0 Features

SharePoint Interview Questions and Answers

Calling ASP.Net WebMethod using jQuery AJAX

What is Cloud Computing - A guide for beginners