fix(router): url serializer should handle segments without primary children

This commit is contained in:
vsavkin
2016-06-19 13:45:40 -07:00
parent f164715678
commit 0c50bc6449
3 changed files with 38 additions and 25 deletions

View File

@ -74,6 +74,8 @@ export class UrlSegment {
forEach(children, (v: any, k: any) => v.parent = this);
}
hasChildren(): boolean { return Object.keys(this.children).length > 0; }
toString(): string { return serializePaths(this); }
}