Called by the Router during the commit phase of a navigation when an outlet
reuses a component between different routes.
This method in turn is responsible for calling the routerOnReuse
hook of its child.
Source
Future<dynamic> reuse(ComponentInstruction nextInstruction) { var previousInstruction = this._currentInstruction; this._currentInstruction = nextInstruction; // it's possible the component is removed before it can be reactivated (if nested withing // another dynamically loaded component, for instance). In that case, we simply activate // a new one. if (_componentRef == null) { return this.activate(nextInstruction); } else { return this._componentRef.then((ComponentRef ref) => hasLifecycleHook(hook_mod.routerOnReuse, ref.instance) ? ((ref.instance as OnReuse)) .routerOnReuse(nextInstruction, previousInstruction) : true); } }