canActivate
, canDeactivate
), middleware or plugins, you might need to access specific objects from your application: a store, a specific API, etc... You can pass their reference to router5 and they will be passed alongside your router instance.createRouter
accepts a generic for typing dependencies.getDependencies()
.canActivate
, canDeactivate
), middleware or plugins will be called with them: