当前位置:   article > 正文

路由接口记录_arshowwhenstop":false,"benabletunnelrender":false}

arshowwhenstop":false,"benabletunnelrender":false})
interface ActivatedRoute { 
  snapshot: ActivatedRouteSnapshot
  url: Observable<UrlSegment[]>
  params: Observable<Params>
  queryParams: Observable<Params>
  fragment: Observable<string>
  data: Observable<Data>
  outlet: string
  component: Type<any> | string | null
  get routeConfig: Route | null
  get root: ActivatedRoute
  get parent: ActivatedRoute | null
  get firstChild: ActivatedRoute | null
  get children: ActivatedRoute[]
  get pathFromRoot: ActivatedRoute[]
  get paramMap: Observable<ParamMap>
  get queryParamMap: Observable<ParamMap>
  toString(): string
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19

官方释义

snapshot: ActivatedRouteSnapshot
The current snapshot of this route
此路由的当前快照

 url: Observable<UrlSegment[]>
An observable of the URL segments matched by this route
一个路由匹配url分隔的流

 params: Observable<Params>
An observable of the matrix parameters scoped to this route
在此路由范围内的矩阵参数的流

 queryParams: Observable<Params>
An observable of the query parameters shared by all the routes

 fragment: Observable<string>
An observable of the URL fragment shared by all the routes

 data: Observable<Data>
An observable of the static and resolved data of this route.

 outlet: string
The outlet name of the route. It's a constant

 component: Type<any> | string | null
The component of the route. It's a constant

 get routeConfig: Route | null
The configuration used to match this route

 get root: ActivatedRoute
The root of the router state

 get parent: ActivatedRoute | null
The parent of this route in the router state tree

 get firstChild: ActivatedRoute | null
The first child of this route in the router state tree

 get children: ActivatedRoute[]
The children of this route in the router state tree

 get pathFromRoot: ActivatedRoute[]
The path from the root of the router state tree to this route

 get paramMap: Observable<ParamMap>
 get queryParamMap: Observable<ParamMap>
 toString(): string
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
interface ActivatedRouteSnapshot { 
  get routeConfig: Route | null
  url: UrlSegment[]
  params: Params
  queryParams: Params
  fragment: string
  data: Data
  outlet: string
  component: Type<any> | string | null
  get root: ActivatedRouteSnapshot
  get parent: ActivatedRouteSnapshot | null
  get firstChild: ActivatedRouteSnapshot | null
  get children: ActivatedRouteSnapshot[]
  get pathFromRoot: ActivatedRouteSnapshot[]
  get paramMap: ParamMap
  get queryParamMap: ParamMap
  toString(): string
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/blog/article/detail/59011
推荐阅读
相关标签
  

闽ICP备14008679号