Fal*_*lci 17 angularjs angular-ui-router
$state.go()如果我只有URL,如何使用?
或者我可以获得基于URL的状态吗?(而不是使用$state.go(state))
我问,因为我必须拦截$urlRouterProvider.otherwise()等待其他插件加载一些外部模块..现在我需要继续并调用调用的URLotherwise()
Nik*_*wal 10
取而代之的是$state.go(),您也可以使用$location服务.
即
$location.path(url)
Run Code Online (Sandbox Code Playgroud)
请注意不要在URL中使用#.你也可以使用window.location.href
| 归档时间: |
|
| 查看次数: |
25143 次 |
| 最近记录: |