Added a note to clarify it cannot be used in resolve methods of $routeProvider