"@angular/router": "3.0.0-beta.2": Route接口的终端属性是干什么的?
"@angular/router": "3.0.0-beta.2": What does the terminal property of the Route interface do?
在 Angular2 3.0.0-beta.2 路由器中有一个名为 terminal
的 属性,我找不到它的文档。这个 属性 有什么作用?
查看源文件:@angular/router/src/config.d.ts
terminal
用于匹配空的 ('')
路由,例如:
{
path: '',
redirectTo: '/crisis-center',
terminal: false
},
然而自 3.0.0-beta.1 以来它一直被 changed to pathMatch
, which is documented: https://angular.io/docs/ts/latest/guide/router.html (or jump directly to where redirects 讨论)
在 Angular2 3.0.0-beta.2 路由器中有一个名为 terminal
的 属性,我找不到它的文档。这个 属性 有什么作用?
查看源文件:@angular/router/src/config.d.ts
terminal
用于匹配空的 ('')
路由,例如:
{
path: '',
redirectTo: '/crisis-center',
terminal: false
},
然而自 3.0.0-beta.1 以来它一直被 changed to pathMatch
, which is documented: https://angular.io/docs/ts/latest/guide/router.html (or jump directly to where redirects 讨论)