I want to get the name of component which is active by router link in header layout. and then make a check based on the component name active. If there is a way, please help me out sort of this situation. currently I m fetching the router link address in ngOnInit method
this.router.url
I also want the component name that is linked to active router link, because in some cases component names and url segments are not matched in my application