🚀 feature request
Description
Even there is a API (ComponentFactoryResolver, ViewContainerRef ) to create programatically component as of now there is no way to hook in Form API, just like you would use it traditionally.
Right now I am more refering to a Form Input components that needs to be instantiated from the code and even I can connect each and every binding there is no clean way to attach ngModel or formControl.
just like you would this:
<my-input [(ngModel)]="object.name"></my-input>
You shoudl be able to achive the same programatically. In other words add ngModelDirective from code
Are there any plans for this?
Describe the solution you'd like
Ideally it should be treated as any other bindings.
Reactions are currently unavailable
🚀 feature request
Description
Even there is a API (ComponentFactoryResolver, ViewContainerRef ) to create programatically component as of now there is no way to hook in Form API, just like you would use it traditionally.
Right now I am more refering to a Form Input components that needs to be instantiated from the code and even I can connect each and every binding there is no clean way to attach ngModel or formControl.
just like you would this:
You shoudl be able to achive the same programatically. In other words add ngModelDirective from code
Are there any plans for this?
Describe the solution you'd like
Ideally it should be treated as any other bindings.