angular-cn/modules/@angular/router/src/url_tree.ts

11 lines
348 B
TypeScript
Raw Normal View History

2016-05-21 20:35:55 -04:00
import { Tree, TreeNode } from './tree';
export class UrlTree extends Tree<UrlSegment> {
constructor(root: TreeNode<UrlSegment>, public queryParameters: {[key: string]: string}, public fragment: string | null) {
super(root);
}
}
export class UrlSegment {
constructor(public segment: any, public parameters: {[key: string]: string}) {}
}