router.add()
objects containing canActivate
functions and those functions will be registered. No need to call for each route addNode
or canActivate
.router.registerComponent
and router.deregisterComponent
have been removed in favour of canDeactivate
init
function anymore).autoCleanUp
is no longer shared with router5-listeners. If you need to turn off automatic deregistration of node listeners, pass { autoCleanUp: false }
to the listeners plugin.router5
package now exports Router5
as default, and RouteNode
, loggerPlugin
, errCodes
and transitionPath
as named exports