Hi there Im not sure if this is possible... basically I want to be able to show a component but only if the route matches and hide a component if the route matches Ive tried thi
check the router.url in the template:
router.url
//component I want hidden unless url /home
in app.component.ts inject the router.
app.component.ts
router
export class AppComponent { title = 'app'; router: string; constructor(private _router: Router){ this.router = _router.url; } }