ng2-select2
ng2-select2 copied to clipboard
Select2 reset when data changed
I'm having multiple ng-select2 elements with same data set and I want to remove items selected from one in the other. So once item is selected I modify data of second element removing it from data. Once this happened dropdown get reset and already selected value goes away ( module triggers a event for the default option as well.)
it does not work either
<select2 name="unid" [data]="unids" [options]="optionsSelect2" class="inputSize" [(ngModel)]="product.unid" ngDefaultControl (valueChanged)="product.unid = $event.value"></select2>
How do I reset the data?