MCPcopy Index your code
hub / github.com/angular/angular / ManualProjecting

Class ManualProjecting

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

ComponentInterface · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…