Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

ViewTransitionInfo

The information passed to the onViewTransitionCreated function provided in the withViewTransitions feature options.

      
      interface ViewTransitionInfo {
  transition: {...}
  from: ActivatedRouteSnapshot
  to: ActivatedRouteSnapshot
}
    

Properties

Property Description
transition: { finished: Promise<void>; ready: Promise<void>; updateCallbackDone: Promise<void>; skipTransition(): void; }

The ViewTransition returned by the call to startViewTransition.

See also:

from: ActivatedRouteSnapshot

The ActivatedRouteSnapshot that the navigation is transitioning from.

to: ActivatedRouteSnapshot

The ActivatedRouteSnapshot that the navigation is transitioning to.