|
Erstellt von James Drummond
vor mehr als 10 Jahre
|
|
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:
Möchten Sie kostenlos Ihre eigenen Notizen mit GoConqr erstellen? Mehr erfahren.