Added missing updateParams method

According to documentation, `updateParams` method existed even in 1.3 but it was missing in `IRouteService`. Added this missing method.
This commit is contained in:
Valentyn Shybanov
2015-12-04 13:31:52 +01:00
parent e5a27ea95e
commit 380e701b39
+10
View File
@@ -35,6 +35,16 @@ declare module angular.route {
// May not always be available. For instance, current will not be available
// to a controller that was not initialized as a result of a route maching.
current?: ICurrentRoute;
/**
* Causes $route service to update the current URL, replacing current route parameters with those specified in newParams.
* Provided property names that match the route's path segment definitions will be interpolated into the
* location's path, while remaining properties will be treated as query params.
*
* @param newParams Object.<string, string> mapping of URL parameter names to values
*/
updateParams(newParams:{[key:string]:string});
}