angular ui 路由器的默认路由 [英] Default route for angular ui router
问题描述
angular ui router的示例demo有这个起始页的链接:
'ui-router' 的完整 url 是 /
或 http://angular-ui.github.io/ui-router/sample/#/
>
'about' 的完整 url 是 /about
或 http://angular-ui.github.io/ui-router/sample/#/about
>
当我使用 durandalJS 时,有一个限制,即默认 url 只是/",不能有/ui-router".
angular ui 路由器插件是否有同样的限制?
见这里 默认路由有一个其他"选项.
如果你在谈论默认路由参数,那么这里有一个答案这里.
The sample demo of the angular ui router has this link for the start page:
full url of 'ui-router' is /
or http://angular-ui.github.io/ui-router/sample/#/
full url of 'about' is /about
or http://angular-ui.github.io/ui-router/sample/#/about
When I was using durandalJS there was a limitation that the default url is just "/" there can be no "/ui-router".
Has the angular ui router plugin the same limitation?
See here there is an "otherwise" option for a default route.
If you are talking about default route PARAMETERS, then there is an answer here.
这篇关于angular ui 路由器的默认路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!