I need to pick the value of a model that has changed. I am using the oi.multiselect in angular. Each time I pick the model it gives me the initial value in it instead of the current changed one. Here is my html part of the code:
<oi-multiselect
ng-options="item for item in clientx"
ng-model="bundlex"
multiple
placeholder="Select clients"
></oi-multiselect>
The model "bundlex" values initially are ["Brad Stan"," Calins mark"] reading from the controller. But after in select new values from the drop down the model changes to ["Brad Stan"," Calins mark"," Xavier Nato"," Frank Sunatra"]. When I post the model after changing it, it seem to only hold the initial values and not the new/current one. How can I solve this? Thank you. Here is a link to an example: http://ift.tt/1bFqlgu
Aucun commentaire:
Enregistrer un commentaire