UrlSegmentGroup
class
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
constructor(segments: UrlSegment[], children: { [key: string]: UrlSegmentGroup; })Parameters
|
Properties
Property | Description |
---|---|
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
hasChildren() |
---|
Whether the segment has child segments |
hasChildren(): booleanParametersThere are no parameters. Returns
|
toString() |
---|
toString(): stringParametersThere are no parameters. Returns
|
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/router/UrlSegmentGroup