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
Take a look at this Angular Rounting guide.
You'll need a method called canActivate, this mehtod return a boolean and its in a service.
canActivate
This I what works form me:
{path : 'getIn', component: GetinComponent , canActivate: [GetInService] }