⬅︎ Back to What stumped me about AngularJS
Regarding point 4, I believe you use the run method. Is in the docs. Then inject $rootScope.
Comment
Regarding point 4, I believe you use the run method. Is in the docs. Then inject $rootScope.