UrlSegmentGroup
Stable
Class
What it does
Represents the parsed URL segment group.
See UrlTree
for more information.
Class Overview
class UrlSegmentGroup { constructor(segments: UrlSegment[], children: {[key: string]: UrlSegmentGroup}) parent : UrlSegmentGroup segments : UrlSegment[] children : {[key: string]: UrlSegmentGroup} hasChildren() : boolean numberOfChildren : number toString() : string }
Class Description
Constructor
constructor(segments: UrlSegment[], children: {[key: string]: UrlSegmentGroup})
Class Details
parent : UrlSegmentGroup
The parent node in the url tree
segments : UrlSegment[]
The URL segments of this group. See UrlSegment
for more information
children : {[key: string]: UrlSegmentGroup}
The list of children of this group
hasChildren() : boolean
Wether the segment has child segments
numberOfChildren : number
Number of child segments
toString() : string
exported from @angular/router/index, defined in @angular/router/src/url_tree.ts
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/router/index/UrlSegmentGroup-class.html