Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Adriano Fabri 469 posts 1633 karma points
    Jan 24, 2018 @ 11:03
    Adriano Fabri
    0

    How to reload route after close modal

    Hello, I don't understand how to reload route after close a modal. In my modal controller I now do this:

    $scope.closeDialog = function () {
        $route.reload();
        $scope.dismiss();
    }
    

    and in my view I do:

    <a href="" ng-click="close()" class="btn pull-right">Close</a>
    

    But when I close the modal, the route doesn't reload.

    What I'm doing wrong?

    Thank you for the support

Please Sign in or register to post replies

Write your reply to:

Draft