erikringsmuth / app-router

Router for Web Components
https://erikringsmuth.github.io/app-router/
MIT License
610 stars 83 forks source link

Adds bubbling core-signal events in addition to element based events #120

Open rurri opened 9 years ago

rurri commented 9 years ago

In order to make supporting elements, access to the app-router events is needed. Sending core-signal events allows elements that are ignorant of the rest of the application still respond meaningfully to these events.

This is needed for elements such as page tracking, comment plug-ins where the provider requires a singleton call, or other sitewide changes based on route changes.

rurri commented 9 years ago

For an example of how this can be used:

https://github.com/rurri/app-router-analytics