title: 2 Way data binding not working in ng-select Angular 6
body: <p>I am using ng-select in my application.</p>
  
  <p>My component class is</p>
  
  <pre><code>export class ExampleComponent {
       selectedCoursesList: Course[] = [];
       courseList: any[] = [];
  
       removeCourse( course: Course) {
           this.selectedCoursesList.forEach((item, index) =&gt; { 
            if (item === course) { 
                  this.selectedCoursesList.splice(index, 1);          
            }
          });
      }
   }
  </code></pre>
  
  <p>and my html is</p>
  
  <pre><code>     &lt;ng-select  placeholder="Choose course" [multiple]="true" 
          (ngModelChange)="updatecourse($event);" 
          [(ngModel)]="selectedCoursesList"&gt;
          &lt;ng-option *ngFor="let course of courseList" [value]="course" &gt;
                      {‌{course.name}} 
          &lt;/ng-option&gt;
       &lt;/ng-select&gt;
  </code></pre>
  
  <p>Here I want to achieve 2 things</p>
  
  <ol>
  <li>Un-selecting  particular selected values of ng-select</li>
  <li>2 way Data binding</li>
  </ol>
  
  <p>Can any one tell me what I did wrong?</p>
  
  <p>Thank You</p>