Comments (7)
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.
Can you please add a plnkr?
from angular-bootstrap-duallistbox.
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.
You can simulate live data with hardcoded ones.
from angular-bootstrap-duallistbox.
Here ya go. Can you tell me what looks wrong (aside from the button styles of course).
from angular-bootstrap-duallistbox.
Confirmed bug.
http://plnkr.co/edit/iyi08XKqc5Lvhycf6tDU?p=preview
from angular-bootstrap-duallistbox.
I am having the same issue
@jean-merelis Your solution worked for me
from angular-bootstrap-duallistbox.
Related Issues (20)
- Postfix helpers HOT 1
- doesnt update model variable HOT 8
- "selectOrMinimalHeight" wrong variable name problem HOT 1
- info-all = 'false' attribute not working HOT 4
- DuallistBox - select one move all values HOT 1
- Required attribute gives error HOT 1
- How to set initial selected items? HOT 3
- Know when the NonSelected list box is empty HOT 3
- How to keep single/multiple option values selected ? HOT 17
- Large number of records and performance. HOT 1
- Use npm HOT 6
- Dependencies in index.html HOT 1
- Two-way binding to ng-model does not work HOT 2
- ng-model is not working for me HOT 2
- How to focus filter and item select HOT 1
- angular 4 HOT 1
- Tooltip on items HOT 2
- Avoid scroll on selection HOT 3
- Example doesn't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-bootstrap-duallistbox.