1
我有下面的代码角JS重定向查看
程序代码来渲染/结果内容每当默认视图功能是使用$航线的
angular.module('myapp').controller
('ResultController',['$route',function ($route){ this.defaultview=function(){$routes._ _ _ _ ('/result');};}
什么将在最后一行划线区域的值称为?有什么建议么?
我认为这是有用的,你http://stackoverflow.com/questions/11907961/redirect-using-angularjs –
可能是它的$ location.path ('/ result') – Jigar7521
OP,你使用angular-ui-router吗?如果不是,请删除标签 – nikjohn