onStart()
: invoked when router.start()
is calledonStop()
: invoked when router.stop()
is calledonTransitionStart(toState, fromState)
onTransitionCancel(toState, fromState)
onTransitionError(toState, fromState, err)
onTransitionSuccess(toState, fromState, opts)
(options contains replace
and reload
boolean flags)teardown()
: a function called when removing the plugin