angular-cn/public/docs/_examples/upgrade-phonecat-3-router/ts/app/ajs-upgraded-providers.ts

15 lines
278 B
TypeScript
Raw Normal View History

// #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']
};