Accessing URL Path for Conditional Rendering in Neutrinos SSD

Hi @Mohammed_Faizal_T ,

You can access routes or URL Path by using of two nodes navigation data and navigation listener.
I will drop the documentation link for them below:
Navigation Listener
Navigation Data

Steps to conditional hide or show an element:
1. Assign your URL to a page variable so you can use it on your page.
2. Add a new Key & value property.
3. Key should be an *ngIf then a value your condition

3 Likes