• Overview
@angular/core

RendererFactory2

Class

Creates and initializes a custom renderer that implements the Renderer2 base class.

  
    abstract class RendererFactory2 {}
  
  

createRenderer

Creates and initializes a custom renderer for a host DOM element.

@paramhostElementany

The element to render.

@paramtypeRendererType2 | null

The base class to implement.

@returnsRenderer2

begin

void

A callback invoked when rendering has begun.

@returnsvoid

end

void

A callback invoked when rendering has completed.

@returnsvoid

whenRenderingDone

Promise<any>

Use with animations test-only mode. Notifies the test when rendering has completed.

@returnsPromise<any>
Jump to details