title: How to call a function from HTML page on every for loop using *ngFor
body: <p>I am fetching data from an API in a array using below code in my <code>page.ts</code></p>
  
  <pre><code>this._myservice.myservice(this.taskdesc).subscribe(data =&gt; {
        this.list = data;
  </code></pre>
  
  <p>On my <code>page.html</code>, I am showing data using <code>*ngFor</code> , code shown below:</p>
  
  <pre><code>&lt;ion-list no-lines *ngFor="let list of displayList;let i=index;" &gt;
      &lt;ion-item&gt;{{list.TASKDESC}}{{list.ENTUSR }}{{list.DEADLINE_DT }}&lt;/ion-item&gt;
  </code></pre>
  
  <p>In every for loop, I want to call a function <code>checkdeadline_dt()</code> and print in console <code>list.DEADLINE_DT</code>.</p>
  
  <p>Please advise code on HTML/TS page as how to achieve this.</p>