angular-dynamic-forms icon indicating copy to clipboard operation
angular-dynamic-forms copied to clipboard

How can we track global changes without submit button?

Open MrGorki opened this issue 10 years ago • 2 comments

I would like to track changes on formData with something like ng-change but ng-change gave error when I added to the dynamic-form directive. Is it possible to achieve such thing?

MrGorki avatar Jun 03 '15 06:06 MrGorki

I'm not aware of any reason for that not to work. Can you provide more detail on the error, and some sample code that generates it?

danhunsaker avatar Jun 03 '15 06:06 danhunsaker

When you add ng-change to the directive directly on html. It gaves "ngChange requires ngModel control" on console and not rendering. But eventually it has ng-model also. I did solve the problem by detecting the page leave rather than form change to update my collection. I will try to arrange a fiddle also. Thanks for your rapid response by the way! Congrats!

MrGorki avatar Jun 03 '15 08:06 MrGorki