I am using yo:angular-fullstack generator to build my website. When a user registers to the site, it will send an activation email with a link. When a user clicks t
yo:angular-fullstack
You need to listen to AngularJS changing the route using the $locationChangeStart event:
$locationChangeStart
$scope.$on('$locationChangeStart', function () { $timeout.cancel(timer); });
That way, when the route changes, the timer is cancelled and the user is not redirected.