More precise type for $routeProvider.resolve

This commit is contained in:
Punyashloka Biswal
2014-09-24 18:35:13 -07:00
committed by Punya Biswal
parent 4c9f4a5240
commit de37f2dbbf
+1 -1
View File
@@ -75,7 +75,7 @@ declare module ng.route {
* - key - {string}: a name of a dependency to be injected into the controller.
* - factory - {string|function}: If string then it is an alias for a service. Otherwise if function, then it is injected and the return value is treated as the dependency. If the result is a promise, it is resolved before its value is injected into the controller. Be aware that ngRoute.$routeParams will still refer to the previous route within these resolve functions. Use $route.current.params to access the new route parameters, instead.
*/
resolve?: any;
resolve?: {[key: string]: any};
/**
* {(string|function())=}
* Value to update $location path with and trigger route redirection.