title: Algolia's nbHits not working with if condition in angular
body: <p>I am using algolia in angular. I have to show view more button only when I have more than 8 records. I'm trying to use nbHits in if condition but it is not working.<br />
  Here is what I done so far -</p>
  <pre><code>&lt;ais-instantsearch [config]=&quot;productsConfig&quot;&gt;
      &lt;ais-configure [searchParameters]=&quot;{ hitsPerPage: 8 }&quot;&gt;&lt;/ais-configure&gt;
      &lt;ais-hits&gt;
         &lt;ng-template let-hits=&quot;hits&quot;&gt;
               &lt;div class=&quot;card&quot;&gt;
                  &lt;div class=&quot;card-body&quot;&gt;
                     &lt;div class=&quot;row&quot;&gt;
                        &lt;div class=&quot;col-sm-2&quot;&gt;
                           &lt;div class=&quot;title&quot;&gt;
                              Products
                           &lt;/div&gt;
                        &lt;/div&gt;
                            &lt;div class=&quot;col-sm-10&quot;&gt;
                              &lt;ais-stats&gt;
                                   &lt;a href=&quot;&quot; class=&quot;btn-view-more btn btn-info float-right&quot; *ngIf=&quot;hits.nbHits &gt; 8&quot;&gt;View All&lt;/a&gt;   
                                   {{hits.nbHits}} results found in {{hits.processingTimeMS}}ms.
                              &lt;/ais-stats&gt;
                            &lt;/div&gt;
                     &lt;/div&gt;
                     &lt;section&gt;
                         &lt;div class=&quot;row&quot;&gt;
                              &lt;div class=&quot;col-lg-2&quot;*ngFor=&quot;let hit of hits&quot;&gt;
                                  &lt;figure&gt;
                                     &lt;img src=&quot;{{hit.picture}}&quot; class=&quot;figure-img img-fluid&quot;&gt;
                                     &lt;figcaption class=&quot;&quot;&gt;{{hit.productName}}&lt;/figcaption&gt;
                                  &lt;/figure&gt;
                               &lt;/div&gt;
                         &lt;/div&gt;    
                     &lt;/section&gt;
                  &lt;/div&gt;
               &lt;/div&gt;
           &lt;/ng-template&gt;
      &lt;/ais-hits&gt;
  &lt;/ais-instantsearch&gt;    
  </code></pre>
  <p>How to use nbHits with if condition?<br />
  Any help would be appreciated,<br />
  Thanks</p>