message: refactor(router): move activation to private method
  PR Close
diff: @@ -712,14 +712,25 @@ export class Router {
  }
  });
  + this.activateRoutes(
  + routerState$, this.routerState, this.currentUrlTree, id, url, rawUrl, skipLocationChange,
  + replaceUrl, resolvePromise, rejectPromise);
  + });
  + }
  + /**
  + * Performs the logic of activating routes. This is a synchronous process by default. While this
  + * is a private method, it could be overridden to make activation asynchronous.
  + */
  + private activateRoutes(
  + state: Observable<{appliedUrl: string, state: RouterState, shouldActivate: boolean}>,
  + storedState: RouterState, storedUrl: UrlTree, id: number, url: UrlTree, rawUrl: UrlTree,
  + skipLocationChange: boolean, replaceUrl: boolean, resolvePromise: any, rejectPromise: any) {
  // applied the new router state
  // this operation has side effects
  let navigationIsSuccessful: boolean;
  - const storedState = this.routerState;
  - const storedUrl = this.currentUrlTree;
  - routerState$
  + state
  .forEach(({appliedUrl, state, shouldActivate}: any) => {
  if (!shouldActivate || id !== this.navigationId) {
  navigationIsSuccessful = false;
  @@ -781,7 +792,6 @@ export class Router {
  }
  }
  });
  - });
  }
  private resetStateAndUrl(storedState: RouterState, storedUrl: UrlTree, rawUrl: UrlTree): void {
  