formly-js / angular-formly

JavaScript powered forms for AngularJS
http://docs.angular-formly.com
MIT License
2.23k stars 406 forks source link

TypeError: scope.theFormlyForm.$removeControl is not a function #741

Open andreystehno opened 7 years ago

andreystehno commented 7 years ago

This is a bug. Very unexpected.

Please provide a simple solution

FYI

Please do not try to provide me a reference to read something more. 
I would rather spend time to reimplement everything because of such bug. 
david-dlc-cerezo commented 7 years ago

I was getting the same error, and in my case it happened because in <formly-form form="foo"></formly-form>, foo wasn't undefined. Check the parameter on you are passing as form, this might be the problem.