| 1154 | class MyCompBroken0 {} |
| 1155 | |
| 1156 | @Component({ |
| 1157 | selector: 'manual-projecting', |
| 1158 | template: '<div #vc></div>', |
| 1159 | }) |
| 1160 | class 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 | } |
nothing calls this directly
no test coverage detected