I have a service that takes too long to return. Once the user has submitted a request, he/she should be able to navigate to any other page.
How can I alert her that the request she submitted has been processed (the service has returned), regardless of which page he/she is currently in?
You have 2 options:
alertBoxwhich would be added to your app skeleton:Then you could have service:
injected into components:
And you could handle your observables in this component.
angular material. There is asnackbarcomponent which fits your needs perfectly: https://material.angular.io/components/snack-bar/overviewExample usage: