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.

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


Karl San Gabriel

Karl San Gabriel

Java and Enterprise Technologies Expert