0
我们有路线配置
$routeProvider
.when('/Search', { templateUrl: 'Search.html', controller: 'SearchCtrl' })
.when('/Accounts', { templateUrl: 'Accounts.html', controller: 'AccountsCtrl' })
.otherwise({ redirectTo: '/Search' });
在控制器已经BTN点击它重装路线
$location.path("/Accounts").search({
AccountOrShortName: i.AccountOrShortName,
});
$route.reload();
AccountsCtrl
是越来越执行两次。