Quantcast
Viewing all articles
Browse latest Browse all 4827

How to display current route as string

@ob7 wrote:

I just made a 404 page to catch any unknown routes, I would like to display on this page not just a "page not found" message, but one that includes whatever string used as the route.

If user goes to localhost:4200/asfsagsagd, I would like 404 router template to say:
Page "asfsagsagd" not found.

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4827

Trending Articles