Skip to main content
2 of 3
added 105 characters in body
Tushar Walzade
  • 3.8k
  • 4
  • 38
  • 60

As of now, I'm getting my path as follows -

this.router.url.subscribe(value => { // you may print value to see the actual object // console.log(JSON.stringify(value)); this.isPreview = value[0].path === 'preview'; }) 

Where, route is an instance of ActivatedRoute

Tushar Walzade
  • 3.8k
  • 4
  • 38
  • 60