I am trying to reload 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"); }; }
"success" appears in the console, but nothing happens.
How can i fix this?
javascript angularjs
supertrall
source share