On this page
UrlSegmentGroup
class
Represents the parsed URL segment group.
class UrlSegmentGroup {
constructor(segments: UrlSegment[], children: {...})
parent: UrlSegmentGroup | null
segments: UrlSegment[]
children: {...}
numberOfChildren: number
hasChildren(): boolean
toString(): string
}
Description
See UrlTree
for more information.
Constructor
|
segments | The URL segments of this group. See |
children | The list of children of this group |
Properties
Property | Description |
---|---|
parent: UrlSegmentGroup | null |
The parent node in the url tree |
segments: UrlSegment[] |
The URL segments of this group. See |
children: { [key: string]: UrlSegmentGroup; } |
The list of children of this group Declared in constructor. |
numberOfChildren: number |
Read-only. Number of child segments |
Methods
hasChildren()
|
---|
Whether the segment has child segments |
|
toString()
|
---|
|
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/router/UrlSegmentGroup