блог

12 кастрычнік 2018

AngularJS – Data Binding

What is data binding in AngularJS?

AngularJS application is displayed in Hyper Text Markup Language container which is also representing a view. Data Binding is simply used to communication between view and model.

Для прыкладу:

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

<p ng-bind=”studentName”></p>

</ Div>

<Скрыпт>

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

app.controller(‘myCtrl’, function($scope) {

$scope.studentName = “alok”;

$scope.studentId = “1XCHARX;

});

</ SCRIPT>

Output: – Алок

Angular JS Training

In Just 4 Days
запісацца зараз

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