Notas
$scope in Angular
Conteúdo das notas (1)
Página 1
What is scope in Angular?
Scopes provide APIs ($watch) to observe model mutations
Scopes provide APIs ($apply) to propogate any model changes through the system.
Scope is the glue between the application controller and the view
During the template linking phase, the directives set up $watch expressions on the scope.
It gives you access to your models
Think 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.
Informações
- Descrição
- A-Level Angular Notas sobre $scope in Angular, criado por James Drummond em 11-01-2015.
- Criado por
- James Drummond · jan 2015
- Atualizado
- 19 fev 2016
- Visualizações
- 22
- Tags
- Avaliação