Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

$watch on form.$invalid not triggered when control removed #1379

Closed
coli opened this issue Sep 18, 2012 · 4 comments
Closed

$watch on form.$invalid not triggered when control removed #1379

coli opened this issue Sep 18, 2012 · 4 comments

Comments

@coli
Copy link

coli commented Sep 18, 2012

Example at http://jsfiddle.net/ADukg/781/

If you remove all the textboxes, the formController.$invalid is set to false, however, the watcher on $invalid is not triggered so the binding of {{testForm.$invalid}} says true, instead of the real value of false.

@coli
Copy link
Author

coli commented Sep 18, 2012

Interestingly, this works http://jsfiddle.net/ADukg/782/

@coli
Copy link
Author

coli commented Sep 18, 2012

BTW, my workaround right now is to manually fire a digest cycle (via timer) when you remove a row...

@pkozlowski-opensource
Copy link
Member

Duplicate of #1572

@pkozlowski-opensource
Copy link
Member

Closing as a duplicate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants