title: How to update the selected options dynamically in ng multi-select drop-down
body: <p>I have the two multi- select drop-down states and regions, I am selecting multiple values for states and according to that region drop-down data is updating and i am selecting region according to that.</p>
  <p>when i am deselecting any state that time selected region from that state is not deselecting.</p>
  <pre><code>&lt;ng-multiselect-dropdown #multiSelect [placeholder]=&quot;'Select State'&quot; [data]=&quot;states&quot; [settings]=&quot;settings&quot; formControlName=&quot;state&quot; class=&quot;multiselect-dropdown-list&quot; (onSelect)=&quot;getRegions($event)&quot;&gt;&lt;/ng-multiselect-dropdown&gt;
  
  
  
  
  &lt;ng-multiselect-dropdown #multiSelect [placeholder]=&quot;'Select Region'&quot; [data]=&quot;regions&quot; [settings]=&quot;settings&quot; formControlName=&quot;region&quot; class=&quot;multiselect-dropdown-list&quot; &gt;&lt;/ng-multiselect-dropdown&gt;
  
  
  getStates(){
    get states api
    states array
  }
  
  getRegions(event){
     get region api
     regions array
  }
  </code></pre>