when I click a button on a html with angular page I need to redirect to other. I use a javascript function and into it I call $location.path('/newValue') This work fine, but I can't see toast page 1 success message. I need show toast message and redirect to page (or show toast message, wait 1 second and redirect to page). How I can do it?
Thanks
toastr.info("Toast message here...");
$timeout(function() {
$location.path('/newValue');
}, 1000);