【发布时间】:2017-03-30 06:28:55
【问题描述】:
我有以下代码
使用 $route 服务调用 defaultview 函数时呈现 /result 内容的代码
angular.module('myapp').controller
('ResultController',['$route',function ($route){ this.defaultview=function(){$routes._ _ _ _ ('/result');};}
最后一行虚线区域的值是多少?有什么建议吗?
【问题讨论】:
-
可能是 $location.path('/result')
-
OP,你在使用 angular-ui-router 吗?如果没有,请删除标签
标签: html angularjs angularjs-scope