title: Firing ngSubmit from button in ionic alert
body: <p>I've built an ionic app and I use template driven form in Angular to collect form data and use <code>ngSubmit</code> to pass data to <code>ts.file</code>. I want to fire <code>ngSubmit</code> function through 'No and save data' button in alert but my alert function has nothing to do with my <code>html.file</code>. I don't know how to pass data to alert function, either fire <code>ngSubmit</code> through alert. </p>
  
  <p>html.file  </p>
  
  <pre><code>&lt;form #observeForm="ngForm" (ngSubmit)="onSubmit(observeForm.value)" [(observeForm.value)]="tester"&gt;
  ...
    &lt;ion-button margin-top="auto" expand="block" type="submit" routerDirection="backforward"&gt;Confirm&lt;/ion-button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>ts.file</p>
  
  <pre><code>  async presentAlertConfirm() {
      const alert = await this.alertController.create({
        header: 'Time Out!',
        message: 'Do you want to add more observe time?',
        buttons: [
          {
            text: 'Yes',
            cssClass: 'secondary',
            handler: () =&gt; {
              this.startTimer();
              console.log('Add time Okay');
            }
          },
            {
            text: 'No and save data',
            role: 'cancel',
            cssClass: 'secondary',
            handler: (blah) =&gt; {
              this.timer = 0;
            }
          }
        ]
      });
      await alert.present();
    }
  </code></pre>