title: How to call this angular function on load
body: <p>I am having a async function <code>getDataStandard()</code> which needs to be executed on click.I need to get the function automatically done without clicking. How to do that. Please help me as I am new to ionic.</p>
  
  <pre><code>async getDataStandard() {
      let loading = await this.loadingCtrl.create();
      await loading.present();
  
      this.http.get('https://www.labourguide.co.za/LabourguideApi/index.php?q=mostRecentPublications').pipe(
        finalize(() =&gt; loading.dismiss())
      )
      .subscribe(data =&gt; {
  console.log("Testing ...............1");
        this.data = data;
  console.log(data);
  console.log("Testing ..............2");
      }, err =&gt; {
        console.log('JS Call error: ', err);
      });
    }
  </code></pre>
  
  <p>This is the ionic part</p>
  
  <pre><code> &lt;ion-button expand="block" (click)="getDataStandard()"&gt;getDataStandard&lt;/ion-button&gt;
  </code></pre>