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?