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?  
If you want to reload the complete page instead of route refresh inject the $window service and call location.refresh
$window.location.reload();
The $window.location.reload() will basically refresh the page like when you're pressing F5 for refresh.
What I am after is reload the specific views in the page not refreshing the entire page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With