• Overview
@angular/core

AfterRenderOptions

interface

Options passed to afterRender and afterNextRender.

  
    interface AfterRenderOptions {}
  
  

injector

Injector | undefined

The Injector to use during creation.

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

manualCleanup

boolean | undefined

Whether the hook should require manual cleanup.

If this is false (the default) the hook will automatically register itself to be cleaned up with the current DestroyRef.

phase

AfterRenderPhase | undefined
@deprecated

Specify the phase for your callback to run in by passing a spec-object as the first parameter to afterRender or afterNextRender instead of a function.

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.

Jump to details