angular ui 路由器的默认路由 [英] Default route for angular ui router

查看:34
本文介绍了angular ui 路由器的默认路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

angular ui router的示例demo有这个起始页的链接:

'ui-router' 的完整 url 是 /http://angular-ui.github.io/ui-router/sample/#/

'about' 的完整 url 是 /abouthttp://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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆