title: How to run function through ternary operator in Angular template?
body: <p>I have tried something like this:</p>
  
  <pre><code> &lt;input *ngIf="this.checkAll ? (this.undefinedDocuments$ | async)?.length &gt; 0 : (!this.undefinedDocuments$ | async)?.length &gt; 0" [checked]="this.checkAll" (click)="this.checkAll ? this.handleCheckAllClick() : this.handleUncheckAllClick()" class="styled-checkbox" id="checkAllCheckbox" type="checkbox"&gt;
  </code></pre>
  
  <p>But it won't work. I basically want this to work as a "Check All" &amp; "Uncheck All" input.</p>