Avoid accessing $rootScope in services |
Avoid accessing $rootScope in services
CheckId | NG1050701 |
---|---|
TypeName | AvoidAccessingRootScopeInServices |
Severity | CriticalWarning |
Type | Service |
When building services avoid accessing $rootScope. Setting properties on the $rootScope is the equivalent of using global variables. Additionally it can have negative impact on the performance of your application.
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.