You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the module has an isolated scope then any properties that are set on the $rootScope can't be used.
To create a new scope we need to use $scope.$new(true) that returns a new $scope object. True means that is isolated and will not inherit any properties.
@cemycc Using the newly created isolated scope on $rootScope as a fallback, however it doesn't trigger the $destroy event we need to clear subscriptions when a module is destroyed.
If the module has an isolated scope then any properties that are set on the
$rootScope
can't be used.To create a new scope we need to use
$scope.$new(true)
that returns a new $scope object. True means that is isolated and will not inherit any properties.Docs about $new https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$new
The text was updated successfully, but these errors were encountered: