Skip to content

Instantly share code, notes, and snippets.

@arturovt
Last active March 20, 2019 21:25
Show Gist options
  • Save arturovt/3f0a90ac4be79ab3158afcfce3194ef9 to your computer and use it in GitHub Desktop.
Save arturovt/3f0a90ac4be79ab3158afcfce3194ef9 to your computer and use it in GitHub Desktop.
this.transitions = new BehaviorSubject<NavigationTransition>({
id: 0,
currentUrlTree: this.currentUrlTree,
currentRawUrl: this.currentUrlTree,
extractedUrl: this.urlHandlingStrategy.extract(this.currentUrlTree),
urlAfterRedirects: this.urlHandlingStrategy.extract(this.currentUrlTree),
rawUrl: this.currentUrlTree,
extras: {},
resolve: null,
reject: null,
promise: Promise.resolve(true),
source: 'imperative',
state: null,
currentSnapshot: this.routerState.snapshot,
targetSnapshot: null,
currentRouterState: this.routerState,
targetRouterState: null,
guards: { canActivateChecks: [], canDeactivateChecks: [] },
guardsResult: null
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment