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
}
Description
See UrlTree
for more information.
Constructor
Parameters
|
Properties
Property | Description |
---|---|
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
|
Read-only.
Number of child segments |
Methods
Whether the segment has child segments |
ParametersThere are no parameters. Returns
|
ParametersThere are no parameters. Returns
|