W3cubDocs

/Angular

TestComponentRenderer

An abstract class for inserting the root test component element in a platform independent way.

API

class TestComponentRenderer {
  insertRootElement(rootElementId: string, tagName?: string | undefined): void;
  optional removeAllRootElements(): void;
}

insertRootElement

void
@paramrootElementIdstring
@paramtagNamestring | undefined
@returnsvoid

removeAllRootElements

void
@returnsvoid

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/testing/TestComponentRenderer