在子页面上我想要一个使用Angular-UI-Router的新路由系统

时间:2017-03-03 18:34:01

标签: angularjs angular-ui-router

尝试使用UI-Router - 这不是SPA - 而是将多个页面作为子页面内置的SPA集合

我希望用户导航到http://domain/comp的用户。这是一个基本上属于自己状态的子页面。

此链接将用于营销,因此我不想拥有任何#!或使用html5模式。

当用户登陆此页面时,它应该反映初始状态

http://domain/comp/#!/form

但这是它没有发起的,我利用

$urlRouterProvider.when "/comp", "form"

尝试与网址匹配 - 但我相信这是想匹配

/comp/#!/comp and then start the state form

我不想使用catchall

$urlRouterProvider.when "", "form"

因为我基本上将我的所有JS捆绑到一个,所以不要在每个页面上分离捆绑

基本上我正在尝试做什么?

0 个答案:

没有答案
相关问题