AngularJS Scope

1. What is Angular Js scope?

The Scope which plays the role of joining the controller with the views.

The scope contains model data.

They hold the model data that we need to pass to view the scope is available for both view and controller.


2.How to use the scope?

In angular js application, there is

view: view is the HTML part

model: The model is the data available for current view.

controller: controller is javascript function for change/remove/control the data.

so, here scope is a model.



3. What is root scope?

Every Application has a single root scope. Scopes provide separation between the model and view.