title: Show div if array's not visible in Angular 5
body: <p>Hello I want to show a div if NOT data.success. Length of <code>userSet</code> is always more than 0. 
  Basically I want to show a message if there is no search result
  Here what I've got so far. thanks</p>
  
  <p>html </p>
  
  <pre><code>      &lt;ion-card *ngFor="let item of userSet | search : terms; let i = index"&gt;
        ....
        &lt;/ion-card&gt;
         &lt;div [(ngModel)]="data" ngShow="data"&gt;
         show this if no object is visible
         &lt;/div&gt;
  </code></pre>
  
  <p>.ts file</p>
  
  <pre><code>       export class SearchPage {
         data: boolean;
  
         constructor(
      private sanitizer: DomSanitizer,
      public navCtrl: NavController,
      public navParams: NavParams,
      public common: CommonModule,
      public userData: UserData,
      private alertCtrl: AlertController
      ) {
          this.searchSet();
       }  
  
  
       searchSet(){
      this.userData.searchUser()
      .map(res =&gt; res.json())
      .subscribe(data =&gt; {
  
          if (data.success) {
              this.userSet = data.searchDetails;// then it is uid_fk
              this.data = false;
          }
          else {
              this.data = true;
          }
      }); 
  }
  </code></pre>
  
  <p>I am getting No value accessor for form control with unspecified name attribute.</p>