fix(Router): mark Pipeline and RouteRegistry as Injectable

fix #2755
This commit is contained in:
Victor Berchet 2015-06-29 10:22:00 +02:00
parent d6cef88dd8
commit eea989bef8
2 changed files with 4 additions and 0 deletions

View File

@ -1,11 +1,13 @@
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
import {List, ListWrapper} from 'angular2/src/facade/collection';
import {Instruction} from './instruction';
import {Injectable} from 'angular2/di';
/**
* Responsible for performing each step of navigation.
* "Steps" are conceptually similar to "middleware"
*/
@Injectable()
export class Pipeline {
steps: List<Function>;

View File

@ -20,12 +20,14 @@ import {
} from 'angular2/src/facade/lang';
import {RouteConfig} from './route_config_impl';
import {reflector} from 'angular2/src/reflection/reflection';
import {Injectable} from 'angular2/di';
/**
* The RouteRegistry holds route configurations for each component in an Angular app.
* It is responsible for creating Instructions from URLs, and generating URLs based on route and
* parameters.
*/
@Injectable()
export class RouteRegistry {
_rules: Map<any, RouteRecognizer>;