【发布时间】:2017-04-06 11:40:24
【问题描述】:
在我的应用程序中,URLn 中可以有 n 个参数,然后它也可以有一个可选的跟随模式。 例如,URL 可以是
http://example.com/{param1}
http://example.com/{param1}/constant/{id}
http://example.com/{param1}/{param2}/constant/{id}
http://example.com/{param1}/{param2}
http://example.com/{param1}/{param2}/{param3}
http://example.com/{param1}/{param2}/{param3}/constant/{id}
等
如何为这些类型的 URL 构建路由模块?
【问题讨论】:
标签: angular angular-ui-router angular2-routing angular2-router angular2-router3