UrlSegmentGroup
Represents the parsed URL segment group.
class UrlSegmentGroup {
constructor(segments: UrlSegment[], children: { [key: string]: UrlSegmentGroup; })
parent: UrlSegmentGroup | null
segments: UrlSegment[]
children: {...}
numberOfChildren: number
hasChildren(): boolean
toString(): string
}
说明
See UrlTree
for more information.
构造函数
参数
|
属性
属性 | 说明 |
---|---|
parent: UrlSegmentGroup | null | The parent node in the url tree |
segments: UrlSegment[] | Declared in constructor. The URL segments of this group. See |
children: { [key: string]: UrlSegmentGroup; } | Declared in constructor. The list of children of this group |
numberOfChildren: number | 只读 Number of child segments |
方法
Whether the segment has child segments |
参数没有参数。 返回值
|
参数没有参数。 返回值
|