RendererFactory2
class
Creates and initializes a custom renderer that implements the Renderer2
base class.
abstract class RendererFactory2 {
abstract createRenderer(hostElement: any, type: RendererType2): Renderer2
abstract begin()?: void
abstract end()?: void
abstract whenRenderingDone()?: Promise<any>
}
Methods
createRenderer() | ||||||
---|---|---|---|---|---|---|
Creates and initializes a custom renderer for a host DOM element. | ||||||
abstract createRenderer(hostElement: any, type: RendererType2): Renderer2Parameters
Returns
|
begin() |
---|
A callback invoked when rendering has begun. |
abstract begin()?: voidParametersThere are no parameters. Returns
|
end() |
---|
A callback invoked when rendering has completed. |
abstract end()?: voidParametersThere are no parameters. Returns
|
whenRenderingDone() |
---|
Use with animations test-only mode. Notifies the test when rendering has completed. |
abstract whenRenderingDone()?: Promise<any>ParametersThere are no parameters. Returns
|
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/core/RendererFactory2