The function of angular code is What?

  node.js, question
.run(
 ['$rootScope', '$state', '$stateParams',
 function($rootScope, $state, $stateParams) {
 $rootScope.$state = $state;
 $rootScope.$stateParams = $stateParams;
 bracket
 bracket
 )

Because ..$stateAnd$stateParamsMore commonly used, hang directly on to$rootScopeIn fact, there is no need to inject it every time it is used.