Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was 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

Description

@shahmirn

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/

Activity

  1. pkozlowski-opensource commented on Dec 19, 2012

    @pkozlowski-opensource
    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions