title: Dispatch action on Angular router change
body: <p>I'm using Ngrx in Angular 8 app, and I want to dispatch an action when user closing the router. What options do I have? Do I have to create the new Guard and implement CanDeactivate method from the router, or I can do it without any additional services, straight from my component? Thanks for any tips or examples</p>