点击tokesSend链接时,报错:Error: Could not resolve 'tokensSend' from state ''
http代码:
<div id="loading" ng-show="loading">
<img src="img/loading.gif" alt="" //>
</div>
<div class="container">
<div ui-view></div>
</div>
js代码:
var loginApp = angular.module('loginApp', ['ui.router']);
loginApp.config(function($stateProvider, $urlRouterProvider,$httpProvider) {
$urlRouterProvider.otherwise('/dashboard.html');
$urlRouterProvider.otherwise('/tokensSend.html');
$stateProvider
.state('dashboard', {
url: '/dashboard.html',
templateUrl: 'dashboard.html',
controller:''
})
.state('rewardStore', {
url: '/rewardStore.html',
templateUrl: 'rewardStore.html',
controller:''
})
.state('about', {
url: '/about.html',
templateUrl: 'about.html',
controller:''
})
.state('tokensSend', {
url: '/tokensSend.html',
templateUrl: 'tokensSend.html',
controller:''
})
.state('confirming', {
url: '/dashboard.html',
templateUrl: 'dashboard.html',
controller:''
})
});
说明:代码是别人写的,我添加了tokesSend.html,但一直报上面的错误,其他的模块都正常跳转