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