I'm attempting to refresh the 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");
};
}
Even though "success"
is displayed in the console, there is no visible effect.
How can I resolve this issue?