title: How do I set default value using ng-select in angular2?
body: <p>I have my code in HTML like this.</p>
  <pre class="lang-html prettyprint-override"><code>      &lt;div class=&quot;col-md-10&quot;&gt;
            &lt;ng-select [items]=&quot;tests&quot; (data)=&quot;updateSelected($event, 'test')&quot;&gt;
  
            &lt;/ng-select&gt;
         &lt;/div&gt;
  </code></pre>
  <p>My typescript code is as follows</p>
  <pre class="lang-js prettyprint-override"><code>@Input() tests: Option[] = []; I have tests coming as input from previous component
  
       @ViewChildren(SelectComponent)
       private selectComponents: QueryList&lt;SelectComponent&gt;;
      
      ngAfterViewInit() {
              this.selectComponents;
          }
  </code></pre>
  <p>How do I set some value as default value here in selectComponents or is there any other way to set some value as default value using ng-select.</p>