onDeactivate abstract method

void onDeactivate(
  1. RouterState current,
  2. RouterState next
)

Called before component deactivation when routing.

NOTE: This is still called even if the component also extends CanReuse and is reused.

Implementation

void onDeactivate(RouterState current, RouterState next);