UrlSegmentGroup

class

npm Package @angular/router
Module import { UrlSegmentGroup } from '@angular/router';
Source router/src/url_tree.ts

Represents the parsed URL segment group.

See UrlTree for more information.

Overview

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

Constructor

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

Members

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

get numberOfChildren: number

Number of child segments

toString(): string

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/router/UrlSegmentGroup