stencil-router icon indicating copy to clipboard operation
stencil-router copied to clipboard

Route change event

Open matteobortolazzo opened this issue 6 years ago • 3 comments

Stencil version:

 @stencil/[email protected]

I'm submitting a:

[ ] bug report [X] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:

Expected behavior: stencil-router should have an event that fires when the page change.

Steps to reproduce:

Related code:

// insert any relevant code here

Other information:

matteobortolazzo avatar Oct 14 '18 18:10 matteobortolazzo

I've also faced with this problem, but I've created a solution! Take a look on this https://github.com/wanoo21/stencil-route-listener, could be useful also for you till there will be an official one.

wanoo21 avatar Oct 19 '18 14:10 wanoo21

Wow, thanks you!!!

matteobortolazzo avatar Oct 20 '18 14:10 matteobortolazzo

Thanks to @wanoo21 for his solution. If you want, you can use the native way to watch the location prop. Here, I wrote a blog post about it: https://puruvj.dev/blog/stencil-router-events

PuruVJ avatar Sep 06 '20 07:09 PuruVJ