To detect router change in Angular 6, the $on() method is used. It is actually an event handler used to handle $routeChangeSuccess when triggered by a route/view change or update.

BY Best Interview Question ON 15 Apr 2021