feat(router): add ParamMap.keys to get a list of parameters

This commit is contained in:
Victor Berchet
2017-03-20 09:19:25 -07:00
parent a755b715ed
commit d3eda7a5b5
4 changed files with 20 additions and 1 deletions
+4
View File
@@ -59,6 +59,9 @@ export interface CanLoad {
canLoad(route: Route): Observable<boolean> | Promise<boolean> | boolean;
}
/** @stable */
export declare function convertToParamMap(params: Params): ParamMap;
/** @stable */
export declare type Data = {
[name: string]: any;
@@ -156,6 +159,7 @@ export declare class NoPreloading implements PreloadingStrategy {
/** @stable */
export interface ParamMap {
readonly keys: string[];
get(name: string): string | null;
getAll(name: string): string[];
has(name: string): boolean;