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