Coder Social home page Coder Social logo

Comments (7)

jean-merelis avatar jean-merelis commented on June 6, 2024 1

You have to use "track by" instead "as" in ng-options

Instead this:

 <select ng-model="selected" ng-options="av as av.name for av in available" multiple bs-duallistbox></select>

Uses:

 <select ng-model="selected" ng-options="av.name for av in available track by av.id" multiple bs-duallistbox></select>

from angular-bootstrap-duallistbox.

frapontillo avatar frapontillo commented on June 6, 2024

Can you please add a plnkr?

from angular-bootstrap-duallistbox.

blarsen06 avatar blarsen06 commented on June 6, 2024

I'm having the same issue as HansFritz. When loading the available items, and the already selected items (same format of multi-select data in both lists), only the available items appear. It seems like the ng-model isn't binding to the collection. If you've got code to bind / or watch, I'll take a look in your directive (or wire one up). The Plnkr thing is difficult, because I'm working with live data ... I suspect that's why you didn't hear back from HansFritz as well.

from angular-bootstrap-duallistbox.

frapontillo avatar frapontillo commented on June 6, 2024

You can simulate live data with hardcoded ones.

from angular-bootstrap-duallistbox.

blarsen06 avatar blarsen06 commented on June 6, 2024

Here ya go. Can you tell me what looks wrong (aside from the button styles of course).

from angular-bootstrap-duallistbox.

frapontillo avatar frapontillo commented on June 6, 2024

Confirmed bug.
http://plnkr.co/edit/iyi08XKqc5Lvhycf6tDU?p=preview

from angular-bootstrap-duallistbox.

tysonnero avatar tysonnero commented on June 6, 2024

I am having the same issue
@jean-merelis Your solution worked for me

from angular-bootstrap-duallistbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.