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

Class ManualProjecting

packages/core/test/linker/query_integration_spec.ts:1156–1172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154class MyCompBroken0 {}
1155
1156@Component({
1157 selector: 'manual-projecting',
1158 template: '<div #vc></div>',
1159})
1160class ManualProjecting {
1161 @ContentChild(TemplateRef, {static: true}) template!: TemplateRef<any>;
1162 @ViewChild('vc', {read: ViewContainerRef}) vc!: ViewContainerRef;
1163 @ContentChildren(TextDirective) query!: QueryList<TextDirective>;
1164
1165 create() {
1166 this.vc.createEmbeddedView(this.template);
1167 }
1168
1169 destroy() {
1170 this.vc.clear();
1171 }
1172}

Callers

nothing calls this directly

Calls 1

ComponentInterface · 0.90

Tested by

no test coverage detected