Блог

12 октомври 2018

AngularJS Scope

What is AngularJS Scope?

Scope is basically used to make an interface/binding between view and the controller. Here view is Hyper Text Markup Language (HTML) and controller is JavaScript.

To access the properties in view (HTML) we should add properties to $scope object in controller.

Like as in the previous example we should add two properties studentName and studentId to scope object. We should access these property values in the div tag using ng-bind directive.

Angular JS Training

In Just 4 Days
Регистрирайте се сега

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