Kathy Lori
Kathy Lori

Reputation: 497

variable scope within Angular module

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

Answers (1)

ashfaq.p
ashfaq.p

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

Related Questions