UrlSegmentGroup

Represents the parsed URL segment group.

class UrlSegmentGroup { constructor(segments: UrlSegment[], children: {...}) parent: UrlSegmentGroup | null segments: UrlSegment[] children: {...} get numberOfChildren: number hasChildren(): boolean toString(): string }

说明

See UrlTree for more information.

构造函数

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

参数

segments

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

children

The list of children of this group

属性

属性名类型说明
parent

The parent node in the url tree

segments

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

声明于构造函数中
children

The list of children of this group

声明于构造函数中
numberOfChildren只读

Number of child segments

方法

Whether the segment has child segments

hasChildren(): boolean

参数

没有参数。

返回值

boolean

toString(): string

参数

没有参数。

返回值

string