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

Method constructor

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

Source from the content-addressed store, hash-verified

978 private environmentInjector = inject(EnvironmentInjector);
979
980 constructor() {
981 this.componentRef = this.viewContainerRef.createComponent(DynamicIframeHostComponent, {
982 environmentInjector: this.environmentInjector,
983 directives: [
984 {
985 type: SafeSrcdocCarrierDirective,
986 bindings: [inputBinding('srcdoc', () => UNSAFE_HTML)],
987 },
988 ],
989 });
990 }
991 }
992
993 const fixture = TestBed.createComponent(App);

Callers

nothing calls this directly

Calls 2

inputBindingFunction · 0.90
createComponentMethod · 0.65

Tested by

no test coverage detected