ng dynamic compontnt code example
Example: ndc-dynamic how to bind the @INPUT IN the chaild components
@Component({ selector: 'my-component', template: ` <ndc-dynamic [ndcDynamicComponent]="component" [ndcDynamicOutputs]="{ onSomething: { handler: doSomething, args: ['$event', tplVar] } }" ></ndc-dynamic> `,})class MyComponent { component = MyDynamicComponent1; tplVar = 'some value'; doSomething(event, tplValue) {}}