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
/

AfterRenderOptions

Options passed to afterRender and afterNextRender.

      
      interface AfterRenderOptions {
  injector?: Injector
  phase?: AfterRenderPhase
}
    

Properties

Property Description
injector?: Injector

The Injector to use during creation.

If this is not provided, the current injection context will be used instead (via inject).

phase?: AfterRenderPhase

The phase the callback should be invoked in.

Defaults to AfterRenderPhase.MixedReadWrite. You should choose a more specific phase instead. See AfterRenderPhase for more information.