get current route path with parameters
See original GitHub issueIs there a way to get the current route path (not url path) from the writable store?
Right now, the value stored is of format {path, query, hash}
, where the path
value contains the current url path, e.g. /accounts/12345
I am looking for the route path value, e.g. /accounts/:account
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
What is the best way to get current route params in Angular 6 ...
Since you want the current route params, instead of activatedRoute.snapshot , you should be subscribing to activatedRoute.params .
Read more >How To Get Route Path Parameters In Non-Routed Angular ...
First, we can try to do exactly the same as before and inject the ActivatedRoute into the AppComponent . The route will actually...
Read more >How to get current route URL in Angular
Steps to get current route URL in Angular. 1. Import Router,NavigationEnd from angular/router and inject in the constructor. 2.
Read more >How to Get URL Parameters with JavaScript - SitePoint
Learn how to parse query string parameters and get their values in JavaScript. Use the results for tracking referrals, autocomplete, ...
Read more >Get Current Route Parameter In Blade Template - Biegalski LLC
In this quick snippet, you will learn how to get the current route's parameter in your views using the blade templating engine!
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I bit the bullet and switched to declarative style. I will let you know if that prevents me from doing anything but thank you anyway!
I didn’t add this to the router output. But it is easy to add. But what is use case? Just interesting =)