120
rated 0 times
[
122]
[
2]
/ answers: 1 / hits: 10370
/ 10 Years ago, mon, june 2, 2014, 12:00:00
I'm trying to reload page using $route.reload()
:
var App = angular.module(App, [ngRoute]);
var idx = 0;
App.controller(List, function ($scope, $route) {
$scope.changeWallet = function (index) {
idx = index;
$route.reload();
console.log(success);
};
}
success
is shown in console, but nothing happens.
How can I fix this?
More From » angularjs