Reputation: 497
A newbie question here: I'm working with Angular modules that are using dependency injection. If I inject $scope in module A and I do something like $scope.myVariable = 5, will $scope.myVariable be defined in module B?
Upvotes: 0
Views: 28
Reputation: 5469
No, scope are limited to a controller. So they will not reflect in another module.
Read more about it here: Scopes in angularJs
Upvotes: 1