feat: implement default url serializer
This commit is contained in:
11
modules/@angular/router/src/url_tree.ts
Normal file
11
modules/@angular/router/src/url_tree.ts
Normal file
@ -0,0 +1,11 @@
|
||||
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}) {}
|
||||
}
|
Reference in New Issue
Block a user