12 Oct 2018

AngularJS model

What is AngularJS model?

AngularJS provide a directive called ng-bind which is basically used to bind the values of Hyper Text Markup Controls to the application data.

Let us better understand by a simple example.


For Example: 

<div ng-app=”NewModule” ng-controller=”NewController “>

Name: <input ng-model=”userName”>



var app = angular.module (‘NewModule ‘, []);

app.controller (‘NewController ‘, function ($scope) {

$scope.userName = “ “;




Output: –

Angular JS Training

In Just 4 Days
Enroll Now