0
我已经看到这个thread,但它使用ui-router
,我只使用AngularJS的$routeProvider
。在线程的代码是:X秒后重定向AngularJS
.controller('SeeYouSoonCtrl', ['$scope', '$state', '$timeout',
function($scope, $state, $timeout) {
$timeout(function() {
$state.go('AnotherState');
}, 3000);
}])
我怎么能因为我没有使用ui-router
我routeProvider
使用它呢?先谢谢你。
就像一个魅力。谢谢 – FewFlyBy
:)很高兴帮助你cheerz :) –