parent
d6cef88dd8
commit
eea989bef8
@ -1,11 +1,13 @@
|
|||||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||||
import {List, ListWrapper} from 'angular2/src/facade/collection';
|
import {List, ListWrapper} from 'angular2/src/facade/collection';
|
||||||
import {Instruction} from './instruction';
|
import {Instruction} from './instruction';
|
||||||
|
import {Injectable} from 'angular2/di';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Responsible for performing each step of navigation.
|
* Responsible for performing each step of navigation.
|
||||||
* "Steps" are conceptually similar to "middleware"
|
* "Steps" are conceptually similar to "middleware"
|
||||||
*/
|
*/
|
||||||
|
@Injectable()
|
||||||
export class Pipeline {
|
export class Pipeline {
|
||||||
steps: List<Function>;
|
steps: List<Function>;
|
||||||
|
|
||||||
|
@ -20,12 +20,14 @@ import {
|
|||||||
} from 'angular2/src/facade/lang';
|
} from 'angular2/src/facade/lang';
|
||||||
import {RouteConfig} from './route_config_impl';
|
import {RouteConfig} from './route_config_impl';
|
||||||
import {reflector} from 'angular2/src/reflection/reflection';
|
import {reflector} from 'angular2/src/reflection/reflection';
|
||||||
|
import {Injectable} from 'angular2/di';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The RouteRegistry holds route configurations for each component in an Angular app.
|
* 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
|
* It is responsible for creating Instructions from URLs, and generating URLs based on route and
|
||||||
* parameters.
|
* parameters.
|
||||||
*/
|
*/
|
||||||
|
@Injectable()
|
||||||
export class RouteRegistry {
|
export class RouteRegistry {
|
||||||
_rules: Map<any, RouteRecognizer>;
|
_rules: Map<any, RouteRecognizer>;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user