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

Method constructor

packages/core/test/acceptance/security_spec.ts:1062–1072  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1060 private environmentInjector = inject(EnvironmentInjector);
1061
1062 constructor() {
1063 this.componentRef = this.viewContainerRef.createComponent(DynamicIframeHostComponent, {
1064 environmentInjector: this.environmentInjector,
1065 directives: [
1066 {
1067 type: SafeSrcdocCarrierDirective,
1068 bindings: [inputBinding('srcdoc', () => UNSAFE_HTML)],
1069 },
1070 ],
1071 });
1072 }
1073 }
1074
1075 const fixture = TestBed.createComponent(App);

Callers

nothing calls this directly

Calls 2

inputBindingFunction · 0.90
createComponentMethod · 0.65

Tested by

no test coverage detected