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

Class StructDir

packages/core/test/acceptance/view_container_ref_spec.ts:3279–3292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3277 standalone: false,
3278})
3279export class StructDir {
3280 constructor(
3281 private vcref: ViewContainerRef,
3282 private tplRef: TemplateRef<any>,
3283 ) {}
3284
3285 create() {
3286 this.vcref.createEmbeddedView(this.tplRef);
3287 }
3288
3289 destroy() {
3290 this.vcref.clear();
3291 }
3292}
3293
3294@Component({
3295 selector: 'destroy-cases',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected