I want to show a spinner whenever navigation occurs. How can I listen to router events globally so that I can show spinner on NavigationStart and hide it on NavigationEnd whenever routing occurs, like how we do with HttpInterceptor for globally intercepting requests.
Please give me some suggestions.
This is what I use: