• Overview
@angular/router

UrlSegmentGroup

Class
stable

Represents the parsed URL segment group.

API

  class UrlSegmentGroup { constructor(segments: UrlSegment[], children: { [key: string]: UrlSegmentGroup; }): UrlSegmentGroup; parent: UrlSegmentGroup | null; override segments: UrlSegment[]; override children: { [key: string]: UrlSegmentGroup; }; hasChildren(): boolean; readonly numberOfChildren: number; toString(): string;}  

constructor

UrlSegmentGroup
@paramsegmentsUrlSegment[]

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

@paramchildren{ [key: string]: UrlSegmentGroup; }

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

hasChildren

boolean

Whether the segment has child segments

@returnsboolean

numberOfChildren

number

Number of child segments

toString

string
@returnsstring

Description

Represents the parsed URL segment group.

See UrlTree for more information.

Jump to details