MCPcopy Create free account
hub / github.com/angular/angular / createComponent

Function createComponent

packages/compiler/test/i18n/integration_common.ts:194–200  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

192}
193
194export function createComponent(html: string) {
195 const tb: ComponentFixture<I18nComponent> = TestBed.overrideTemplate(
196 I18nComponent,
197 html,
198 ).createComponent(I18nComponent);
199 return {tb, cmp: tb.componentInstance, el: tb.debugElement};
200}
201
202export function serializeTranslations(html: string, serializer: Serializer) {
203 const catalog = new MessageBundle(new HtmlParser(), [], {});

Calls 2

createComponentMethod · 0.65
overrideTemplateMethod · 0.65

Tested by

no test coverage detected