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: {[key: string]: UrlSegmentGroup})
  parent: UrlSegmentGroup|null
  segments: UrlSegment[]
  children: {[key: string]: UrlSegmentGroup}
  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–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v4.angular.io/api/router/UrlSegmentGroup