Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

$viewValue not updating #480

Closed
mchapman opened this issue Dec 6, 2014 · 1 comment
Closed

$viewValue not updating #480

mchapman opened this issue Dec 6, 2014 · 1 comment

Comments

@mchapman
Copy link
Contributor

mchapman commented Dec 6, 2014

Not sure what I am doing wrong, but am trying to replicate functionality I had in select2 component. I read a model with some foreign keys {multi:['123412341234','23423234234']} and look up the records through an API. Then update the model (by directly assigning) to {multi:[{id:'123412341234',text,'Some value'},{id:'23423234234',text:'Some other value}]}. At this point $viewModel contains the array and $viewValue is an empty array.

Can anybody suggest what I am doing wrong? Using 0.9.1 and 1.3.5 but it doesn't seem to be same as #243

@mchapman
Copy link
Contributor Author

mchapman commented Dec 7, 2014

Just realised I am trying to use a single multiple iu-select to do what I had previously been doing with multiple single select2 components. Obviously not going to work....

@mchapman mchapman closed this as completed Dec 7, 2014
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

1 participant