84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
页面使用了angular的路由来切换不同的页面视图,如果不使用a标签来切换的话,使用ng-click先触发一些方法判断,然后再启动路由切换视图。这样的方式可以实现的吗?如果可以要怎么样才写语句?网上找了都没找到有靠谱的案例,麻烦各位解答一下疑惑。
If you use ngRouter, use $location.path to switch. If you use uiRouter, you can use state.go
I’m here for Amway uiRouter
It is also possible to change the current loaction through ng-click
If you use ngRouter, use $location.path to switch.
If you use uiRouter, you can use state.go
I’m here for Amway uiRouter
It is also possible to change the current loaction through ng-click