title: Angular 2- changes in ngModel not reflecting in dropdown
body: <p>So I have a very simple scenario where there's a confirmation popup to be shown on dropdown change. If the user chooses to cancel, I need to revert the dropdown value to old one. I think I'm doing correctly and even in the DOM, value of ngModel bound with <code>select</code> is reflecting. But somehow it's not reverting the selected value in display. Here's my code</p>
  
  <pre><code>&lt;select style="display: inline-block;width: 20%" class="form-control" 
    name="selectedClientVersion" 
    (change)="selectedCurrentVersion($event.target.value)" 
             [(ngModel)]="selectedClientVersion"&gt;
             &lt;option *ngFor="let i of clientVersions" 
             [selected]="i == 'selectedClientVersion' "&gt;{{i}}&lt;/option&gt;
    &lt;/select&gt;
  
  selectedClientVersion='version1';
    prevSelectedClientVersion='version1';
    clientVersions=['version1', 'version2', 'version3'];
    selectedCurrentVersion(val){
      var r = confirm("Do you really want to chnage?");
      if (r == true) {
          this.prevSelectedClientVersion= this.selectedClientVersion= val;
  
      } else {
         this.selectedClientVersion=this.prevSelectedClientVersion;
         //return false;
      }
    }
  </code></pre>
  
  <p>P.S I tried <code>ngModelChange</code> too in place of <code>change</code>.
  Update: I have already searched on stackOverflow for similar answer and found none of the scenario handles this case where there's an involvement of confirmation popup and the values have to be reverted based on that in <code>Angular 2</code></p>
  
  <p><a href="https://i.stack.imgur.com/Xv9NL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xv9NL.png" alt="enter image description here"></a><a href="https://i.stack.imgur.com/qbzLI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qbzLI.png" alt="enter image description here"></a></p>
  
  <p>UPDATE2: This is what I want to do, albeit in angular 2:
  <a href="https://stackoverflow.com/questions/24038594/reset-back-to-previous-option-on-select-field-if-js-confirm-returns-false">Reset back to previous option on Select field if js Confirm returns false</a>
  <a href="http://jsfiddle.net/CZ8F9/" rel="nofollow noreferrer">http://jsfiddle.net/CZ8F9/</a></p>