Blog

12 oktober 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.

Na primer:

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

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

</ P>

<script>

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

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

$scope.userName = “angularjs@doc.com “;

});

</ Script>

Output: – angularjs@doc.com

Angular JS Training

In Just 4 Days
Vnesite zdaj

GTranslate Your license is inactive or expired, please subscribe again!