I'm quite new with Angular so what I need is to show a spinner
each time when a http request is done.
I have many components:
<component-one></component-one>
<component-two></component-two>
<component-three></component-three>
<component-n></component-n>
Each one has a http request that get or save some data so when the http request is made I want to show my <loading></loading>
component so I suppose is not a good practice injecting my loading component in each other component with a http request. Can I add a filter or something from angular that allows me to load the <loading>
component automatically in each component that has an http request?
Also when the http request is done I want to show a message like "Done" or someting.
If anyone can provide me a solution for that I'll really appreciate, ty.