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.

ViewTransitionsFeatureOptions

Options to configure the View Transitions integration in the Router.

      
      interface ViewTransitionsFeatureOptions {
  skipInitialTransition?: boolean
  onViewTransitionCreated?: (transitionInfo: ViewTransitionInfo) => void
}
    

See also

  • withViewTransitions

Properties

Property Description
skipInitialTransition?: boolean

Skips the very first call to startViewTransition. This can be useful for disabling the animation during the application's initial loading phase.

onViewTransitionCreated?: (transitionInfo: ViewTransitionInfo) => void

A function to run after the ViewTransition is created.

This function is run in an injection context and can use inject.