kbanman / selectize-ng

Selectize directive for AngularJS with two-way bindings for both values and options
MIT License
19 stars 7 forks source link

remove options after option list updated #2

Closed esumin closed 7 years ago

esumin commented 10 years ago

Imagine following situation :

Initially you have itemList = [{id: 0, name: 'first item'}, {id: 1, name: 'second item'}]; at some moment itemList assigned to [{id: 0, name: 'first item'}, {id: 2, name: 'third item'}]

expected - selectize contain 'first item' and 'third item' actual - selectize contain 'first item', 'second item' and 'third item'