X Tutup
Skip to content

Commit eea989b

Browse files
committed
fix(Router): mark Pipeline and RouteRegistry as Injectable
fix #2755
1 parent d6cef88 commit eea989b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

modules/angular2/src/router/pipeline.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
22
import {List, ListWrapper} from 'angular2/src/facade/collection';
33
import {Instruction} from './instruction';
4+
import {Injectable} from 'angular2/di';
45

56
/**
67
* Responsible for performing each step of navigation.
78
* "Steps" are conceptually similar to "middleware"
89
*/
10+
@Injectable()
911
export class Pipeline {
1012
steps: List<Function>;
1113

modules/angular2/src/router/route_registry.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ import {
2020
} from 'angular2/src/facade/lang';
2121
import {RouteConfig} from './route_config_impl';
2222
import {reflector} from 'angular2/src/reflection/reflection';
23+
import {Injectable} from 'angular2/di';
2324

2425
/**
2526
* The RouteRegistry holds route configurations for each component in an Angular app.
2627
* It is responsible for creating Instructions from URLs, and generating URLs based on route and
2728
* parameters.
2829
*/
30+
@Injectable()
2931
export class RouteRegistry {
3032
_rules: Map<any, RouteRecognizer>;
3133

0 commit comments

Comments
 (0)
X Tutup