Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

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.