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.

构造函数

constructor(segments: UrlSegment[], children: { [key: string]: UrlSegmentGroup; })
      
      constructor(segments: UrlSegment[], children: { [key: string]: UrlSegmentGroup; })
    
参数
segments UrlSegment[]

The URL segments of this group. See UrlSegment for more information

children object

The list of children of this group

属性

属性说明
parent: UrlSegmentGroup | null

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

声明于构造函数中
numberOfChildren: number 只读

Number of child segments

方法

Whether the segment has child segments

hasChildren(): boolean
      
      hasChildren(): boolean
    
参数

没有参数。

返回值

boolean

toString(): string
      
      toString(): string
    
参数

没有参数。

返回值

string