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

FormController adding ngModel twice on manual $compile #9169

Closed
pocesar opened this issue Sep 19, 2014 · 1 comment
Closed

FormController adding ngModel twice on manual $compile #9169

pocesar opened this issue Sep 19, 2014 · 1 comment

Comments

@pocesar
Copy link
Contributor

pocesar commented Sep 19, 2014

While trying to thrive with #9138 I found that the $error and $$success objects are being set twice with the same controller after doing a manual $compile on an input.

Plunkr http://plnkr.co/edit/Oq74gQNQaxmQfRTvMKRI?p=preview (required is listed twice for the same model under $error)

EDIT: actually there's a zombie ngModelController that sticks on $$success from the previous existing element that was removed from DOM

@lgalfaso
Copy link
Contributor

@pocesar compiling an element that is already compiled is not supported. Please move this to stackoverflow

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