Multiple submit buttons in angular2 form
<p>I am building angular2 form and I would like to have multiple buttons to submit the form, e.g "Save" and "Save and close".</p>

<p>I have tried to use simple buttons with click action on them, but I didn't find anyway to manually mark form as submitted to force form validation.</p>

<pre><code>&lt;form #ticketForm="ngForm" novalidate&gt;
    &lt;input type="text" id="customerName" required
        name="customerName" [(ngModel)]="ticket.customerName"
        #customerName="ngModel"&gt;

    &lt;div class="tj-form-input-errors"
        *ngIf="customerName.errors &amp;&amp; (customerName.dirty ||
        customerName.touched || ticketForm.submitted)"&gt;

        &lt;small [hidden]="!customerName.errors.required"&gt;
            Customer name is required
        &lt;/small&gt;
    &lt;/div&gt;

    &lt;button type="button" (click)="save(ticketForm)"&gt;Save&lt;/button&gt;
    &lt;button type="button" (click)="saveAndClose(ticketForm)"&gt;Save and close&lt;/button&gt;
&lt;/form&gt;
</code></pre>