Skip to content

Latest commit

 

History

History
53 lines (27 loc) · 1.05 KB

events.md

File metadata and controls

53 lines (27 loc) · 1.05 KB

Events

In the lifecycle of a route transition, events are triggered in router instance. The behavior of the transition can be altered by the event handlers

###'before:transition'

Arguments: transition

Emitted before a route transition starts

###'transition'

Arguments: transition

Emitted after a route transition finishes

###'transition:error'

Arguments: transition, error

Emitted when a transition fails

###'transition:abort'

Arguments: transition, error

Emitted when a transition is aborted due to an error or cancelation

###'before:activate'

Arguments: transition, route

Emitted when a route is being activated

###'activate'

Arguments: transition, route

Emitted after a route is activated

###'before:deactivate'

Arguments: transition, route

Emitted when a route is being deactivated

###'deactivate'

Arguments: transition, route

Emitted after a route is deactivated