We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb39f4c commit 6c64975Copy full SHA for 6c64975
1 file changed
src/index.js
@@ -44,6 +44,15 @@ container.value("loader", loader);
44
container.value("autoload", autoload);
45
container.value("h", h);
46
47
+let ojsRouterEvents = {
48
+ ojs: {
49
+ beforeRouteChange: true,
50
+ routeChanged: true,
51
+ },
52
+};
53
+
54
+broker.registerEvents(ojsRouterEvents);
55
56
// Global Helpers
57
const state = State.state;
58
const ojs = (...classDeclarations) => new Runner().run(...classDeclarations);
0 commit comments