|
Created by James Drummond
over 10 years ago
|
|
What is scope in Angular?Scopes provide APIs ($watch) to observe model mutationsScopes provide APIs ($apply) to propogate any model changes through the system.Scope is the glue between the application controller and the viewDuring the template linking phase, the directives set up $watch expressions on the scope. It gives you access to your modelsThink about it: if you set up a model in a view and wish to access it in a controller then you do that via $scope.
There are no comments, be the first and leave one below:
Want to create your own Notes for free with GoConqr? Learn more.