I would like to use the new Portal from material CDK to inject dynamic content in multiple part of a form.
I have a complex form structure and the goal is to have a form that specify multiple place where sub components could (or not) inject templates.
Maybe the CDK Portal is not the best solution for this?
I tried something but I am sure it is not the way of doing: https://stackblitz.com/edit/angular-yuz1kg
I tried also with new ComponentPortal(MyPortalComponent)
but how can we set Inputs on it ? Usually is something like componentRef.component.instance.myInput