formly-js / angular-formly-templates-material

Angular-Formly: Material Templates
MIT License
55 stars 39 forks source link

templateOption onChange not working with validators #37

Closed juwul closed 8 years ago

juwul commented 8 years ago

I need to use onChange to update the label with important information. But I also need to validate on behalf of a global boolean that changes. I have this example jsbin and if the validators object is uncommented, onChange is no longer responding.

juwul commented 8 years ago

I just found my bug! I spelled customer wrong in the validators object. Sorry my bad. Its working now jsbin