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

Dropdowns don't display correct value when html is detached and then re-attached #1726

Closed
shahmirn opened this issue Dec 18, 2012 · 1 comment

Comments

@shahmirn
Copy link

Using $compile and then linking to scope, then detaching html and then re-attaching; select with regular options doesn't show the correct option selected, while select with ng-options does show the correct value.

http://jsfiddle.net/shahmirn/nUZKA/1/

@pkozlowski-opensource
Copy link
Member

@shahmirn this is not correct usage of AngularJS. DOM modifications like this are discouraged (especially done in a controller!).

Anyway, it sounds more like a general question about AngularJS usage and architecture and not a bug report / feature request. As such would be better asked on the mailing list (https://groups.google.com/group/angular), StackOverflow or the IRC (#angularjs) channel. The mailing list is very active and people there will be happy to help.

I'm going to close this ticket now as we would like to keep GitHub issues for bug reports and future requests only. Please feel free to reopen it if you still believe that there is a bug in AngularJS.

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