title: How to use ng2-tag-input with autocomplete dropdown for array of objects
body: <p>The data for showing in the <strong>autocomplete</strong> dropdown:</p>
  
  <pre><code>users = [{"user_id":0,"name":"name1"},
           {"user_id":1,"name":"name2"},
           {"user_id":2,"name":"name3"}];
  </code></pre>
  
  <p>The UI template code showing <code>ng2-tag-input</code>  </p>
  
  <pre><code>&lt;tag-input [ngModel]="selectedUsers" [onlyFromAutocomplete]="true"&gt;
      &lt;tag-input-dropdown [showDropdownIfEmpty]="true" [autocompleteItems]="users" [identifyBy]="'user_id'" [displayBy]="'name'"&gt;
      &lt;/tag-input-dropdown&gt;
  &lt;/tag-input&gt;
  </code></pre>
  
  <p>The UI template for <strong>Modal Dialog</strong> is :-</p>
  
  <pre><code>&lt;div bsModal #largeModal="bs-modal" [config]="{backdrop: 'static'}" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
      &lt;div class="modal-dialog modal-lg modal-primary" role="document"&gt;
          &lt;div class="modal-content"&gt;
  
              &lt;div class="modal-body"&gt;
                  &lt;div class="meeting-form m-xl-1"&gt;
                      &lt;div class="row"&gt;
  
                          &lt;div class="col-sm-6"&gt;
                              &lt;div class="form-group"&gt;
                                  &lt;label for="name"&gt;Users&lt;/label&gt;
                                  &lt;tag-input [(ngModel)]="selectedUsers" [onlyFromAutocomplete]="true"&gt;
                                      &lt;tag-input-dropdown [showDropdownIfEmpty]="true" [autocompleteItems]="users" [identifyBy]="'user_id'" [displayBy]="'name'"&gt;
                                      &lt;/tag-input-dropdown&gt;
                                  &lt;/tag-input&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
          &lt;/div&gt;
          &lt;!-- /.modal-content --&gt;
      &lt;/div&gt;
      &lt;!-- /.modal-dialog --&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>In above modal dialog <code>ng2-tag-input</code> is not working.</p>