You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
I'm using Select2 with AngularJS and I want to change the ng-model associated with the select box in the controller. Currently in my plunkr example whenever I update the ng-model, the select2 box clears, as if I reset the ng-model to an empty array. How do I set it to so that I can first add a person, then initiate a function in the controller to add more selections to the select box, and then see both the original selection and the new selections in the box?
I'm using Select2 with AngularJS and I want to change the ng-model associated with the select box in the controller. Currently in my plunkr example whenever I update the ng-model, the select2 box clears, as if I reset the ng-model to an empty array. How do I set it to so that I can first add a person, then initiate a function in the controller to add more selections to the select box, and then see both the original selection and the new selections in the box?
Plunkr
JS Controller
HTML
The text was updated successfully, but these errors were encountered: