Home » Javascript » How do I show a temporary transitory message/notification after redirecting in AngularJS?

How do I show a temporary transitory message/notification after redirecting in AngularJS?

Posted by: admin August 19, 2018 Leave a comment

Questions:

I’d like to show a temporary message right before I redirect using

$location.path("/customerList");

But persists the redirect and show for the same duration it would show as if I did not redirect.

Im using AngularJS 1.5.0 with bootstrap 3
The purpose is to allow the ability to change the view for the end user, but provide feedback on the operation that resulted in the redirect. “User XYZ Saved Successfully” , where XYZ could very well be some property of JSON returned from an API after saving.

The message needs to be dynamic when its shown.

Answers: