Zanderfax
Zanderfax

Reputation: 73

Does Injecting a Dependency into a controller add the dependency to the scope?

I created a value object and I am injecting that object into a controller. Does that value object get added to the controller's $scope or does it have to be manually assigned?

Upvotes: 0

Views: 13

Answers (1)

Reza
Reza

Reputation: 19843

If you want to use it in binding you need to assign it to $scope.blah other wise you can use that in the Controller without assigning

Upvotes: 1

Related Questions