Software Development

Can $scope be shared among controllers?

No. $scope is created for each controller. We’ll prove just that on this article by showing data (or same variable) do not have the same value in two controllers.


$ in MainCtrl has a value “” but SecondCtrl’s $scope.name2 (or $ does not have any value at all.



You Might Also Like