getting active router

PHOTO EMBED

Fri Nov 27 2020 06:59:02 GMT+0000 (Coordinated Universal Time)

Saved by @abeerIbrahim

  console.log(this.router.url); //  /routename
content_copyCOPY

https://github.com/sudheerj/angular-interview-questions