15 lines
278 B
TypeScript
15 lines
278 B
TypeScript
|
// #docregion
|
||
|
export abstract class RouteParams {
|
||
|
[key: string]: string;
|
||
|
}
|
||
|
|
||
|
export function routeParamsFactory(i: any) {
|
||
|
return i.get('$routeParams');
|
||
|
}
|
||
|
|
||
|
export const routeParamsProvider = {
|
||
|
provide: RouteParams,
|
||
|
useFactory: routeParamsFactory,
|
||
|
deps: ['$injector']
|
||
|
};
|