Categories
Uncategorized

Detecting Angular 5 Router State Changes

Detecting Route state changes can be done by subscribing to the router and listening to the events being emitted. In the example below you will see all the router events that you can listen to in Angular 5.

demo.component.ts