title: How to add buttons without submit the form in Angular?
body: <p>In Angular, how I add button without submit the form? </p>
  
  <p>for example I want to call <code>onCancel</code> without submit the form, but update button should be submit the form, and still keep the <code>ngSubmit</code>.</p>
  
  <pre><code>&lt;form [formGroup]="form" (ngSubmit)="submit()"&gt;
      &lt;p&gt;
      &lt;select ...&gt;...&lt;/select&gt;
      &lt;/p&gt;
      &lt;p&gt;
      &lt;button
          type="submit"
          mat-raised-button
          color="primary"&gt;
          update
      &lt;/button&gt;
      &lt;button mat-raised-button (click)="onCancel($event)"&gt;
          cancel
      &lt;/button&gt;
      &lt;/p&gt;
  &lt;/form&gt;
  </code></pre>