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.

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.