Karthey Sundarem
asked on
angular 2 abstract form which has control enable
Hi, I am using an angular 2 abstract form which has child component. For some reason the child inputs get disabled. I am trying to keep it enabled all the time. I tried as given in Angular Abstract control instruction
abstract patchPaymentMethodForm(pay mentMethod : PaymentMethod): void;
// NOT working
this.paymentMethodForm.con trols['car d-number'] .disable({ emitEvent: false });
abstract patchPaymentMethodForm(pay
// NOT working
this.paymentMethodForm.con
Can you show us more of the code
ASKER
Hi,
Please find the attached code. I have separated the files using " *******"
Thanks
Karthey
Please find the attached code. I have separated the files using " *******"
Thanks
Karthey
No files
ASKER
Hi ,
First time when the form loads its working okay. When I try to use the second time, the form input card-number gets disabled.
I am not able to enable it.
Thanks for the help Julian!
-Karthey
AbstractFormControlIssue.txt
First time when the form loads its working okay. When I try to use the second time, the form input card-number gets disabled.
I am not able to enable it.
Thanks for the help Julian!
-Karthey
AbstractFormControlIssue.txt
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
ASKER
Thanks