()
| 36 | readonly viewContainerRef = inject(ViewContainerRef); |
| 37 | |
| 38 | constructor() { |
| 39 | // Create a component with an input binding. |
| 40 | this.viewContainerRef.createComponent(FieldComponent, { |
| 41 | bindings: [inputBinding('formField', () => 'Input from dynamic component')], |
| 42 | }); |
| 43 | |
| 44 | // Create a component with a directive with an input binding. |
| 45 | this.viewContainerRef.createComponent(HostComponent, { |
| 46 | directives: [ |
| 47 | { |
| 48 | type: FieldDirective, |
| 49 | bindings: [inputBinding('formField', () => 'Input from dynamic directive')], |
| 50 | }, |
| 51 | ], |
| 52 | }); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | bootstrapApplication(Root); |
nothing calls this directly
no test coverage detected