Angular2路由器:正则表达式参数,如AngularUI路由器
是否有一种更简单的方法来定义路线,类似于下文中的角度2Angular2路由器:正则表达式参数,如AngularUI路由器,angular,angular2-routing,Angular,Angular2 Routing,是否有一种更简单的方法来定义路线,类似于下文中的角度2 '/files/{path:.*}' - Matches any URL starting with '/files/' and captures the rest of the path into the parameter 'path'. OR '/files/*path' https://github.com/angular-ui/ui-router/wiki/URL-Routing 我在这篇文章中研究了以下Angular
'/files/{path:.*}' - Matches any URL starting with '/files/' and
captures the rest of the path into the parameter 'path'.
OR
'/files/*path'
https://github.com/angular-ui/ui-router/wiki/URL-Routing
我在这篇文章中研究了以下Angular2问题和urlMatcher解决方案,但这对于将路径的其余部分作为参数来阅读似乎太多了