UrlSegmentGroup

UrlSegmentGroup

Stable Class

What it does

Represents the parsed URL segment group.

See UrlTree for more information.

Class Overview

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

Class Description

Constructor

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

Class Details

parent : UrlSegmentGroup

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

Wether the segment has child segments

numberOfChildren : number

Number of child segments

toString() : string

exported from router-index, defined in router/src/url_tree.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/router/index/UrlSegmentGroup-class.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部