Question:What is scope in AngularJS? 

Answer Scope is a JavaScript object that refers to the application model. It acts as a context for evaluating angular expressions. Basically, it acts as glue between controller and view. Controller<------> $Scope <------> View Scopes are hierarchical in nature and follow the DOM structure of your AngularJS app. AngularJS has two scope objects: $rootScope and $scope. 

+ Report
Total Preview: 1226
What is scope in AngularJS?
Copyright © 2024. Powered by Intellect Software Ltd