title: How to set the selected value of the ng2-select
body: <p>I am working on angular2 application, I have use the ng2-select for the multiselect dropdown. Its working fine while creating new entry. But when trying to implement same while <strong>editing</strong>  I am not able to set the default selected <strong>values pulled form database</strong>.</p>
  
  <pre><code>  &lt;ng-select [initData]="aminities" (data)="refreshValue($event)" [multiple]="true" [items]="items" [disabled]="disabled"&gt;&lt;/ng-select&gt;
  
  
  export class EditProjectComponent {
      project: ProjectModel;
      routeParam: RouteParams;
      aminities: any;
      private items: Array&lt;string&gt; = ['Swimming Pool', 'Gymnasium', 'Lift', 'Power Backup',
          'Landscaped Garden', 'Security', 'Community Hall', 'Jogging Track', 'Childrens Play Area'];
      constructor(
          @Inject(Router) private router: Router,
          @Inject(ProjectService) private projectService: ProjectService,
          routeParam: RouteParams,
          private _formBuilder: FormBuilder
      ) {
  
          this.project = new ProjectModel();
          this.routeParam = routeParam;
          if (this.routeParam.params['id'] != undefined) {
              this.projectService.getbyId(this.routeParam.params['id'], (res) =&gt; {
                  this.project = res;
                  this.aminities = this.project.overview.aminities;
  
              }, () =&gt; { });
          }
      }
  
    }
  </code></pre>
  
  <p>After response came i have to set the <strong>aminities</strong> values in ng2-select.</p>
  
  <p>Please correct me how to set the default selected values.</p>