pankee
pankee

Reputation: 461

Angular 4 - Routing wildcard in between slashes

I'm trying to get the routing in my angular app to have a wildcard in between slashes, like so:

/event/**/{ID}

In this case, whatever is in between /event and /{ID} doesn't matter at all and is only here for display purposes. I know about wildcards in Angular, written like so:

path: '**'

But the following route doesn't work:

path: 'event/**/:id'

Is there any way to make this work?

Upvotes: 1

Views: 667

Answers (1)

Arpp
Arpp

Reputation: 301

You could try with the following path :

path: 'event/:something/:id'

Upvotes: 2

Related Questions