title: How to submit forms in Stepper in Angular 4 material
body: <p>How to submit form data in the stepper of angular material. I am following the example from angular material <a href="https://material.angular.io/components/stepper/examples" rel="nofollow noreferrer">https://material.angular.io/components/stepper/examples</a>. I did lot of googling before asking this question, but not found any answer.</p>
  
  <pre><code>&lt;mat-horizontal-stepper [linear]="isLinear" #stepper="matHorizontalStepper"&gt;
    &lt;mat-step [stepControl]="firstFormGroup"&gt;
      &lt;form [formGroup]="firstFormGroup"&gt;
        &lt;ng-template matStepLabel&gt;Fill out your name&lt;/ng-template&gt;
        &lt;mat-form-field&gt;
          &lt;input matInput placeholder="Last name, First name" formControlName="firstCtrl" required&gt;
        &lt;/mat-form-field&gt;
        &lt;div&gt;
          &lt;button mat-button matStepperNext&gt;Next&lt;/button&gt;
        &lt;/div&gt;
      &lt;/form&gt;
    &lt;/mat-step&gt;
    &lt;mat-step [stepControl]="secondFormGroup"&gt;
      &lt;form [formGroup]="secondFormGroup"&gt;
        &lt;ng-template matStepLabel&gt;Fill out your address&lt;/ng-template&gt;
        &lt;mat-form-field&gt;
          &lt;input matInput placeholder="Address" formControlName="secondCtrl" required&gt;
        &lt;/mat-form-field&gt;
        &lt;div&gt;
          &lt;button mat-button matStepperPrevious&gt;Back&lt;/button&gt;
          &lt;button mat-button matStepperNext&gt;Next&lt;/button&gt;
        &lt;/div&gt;
      &lt;/form&gt;
    &lt;/mat-step&gt;
    &lt;mat-step&gt;
      &lt;ng-template matStepLabel&gt;Done&lt;/ng-template&gt;
      You are now done.
      &lt;div&gt;
        &lt;button mat-button matStepperPrevious&gt;Back&lt;/button&gt;
        &lt;button mat-button (click)="stepper.reset()"&gt;Reset&lt;/button&gt;
      &lt;/div&gt;
    &lt;/mat-step&gt;
  &lt;/mat-horizontal-stepper&gt;
  </code></pre>
  
  <p>I am done with filling two forms. But after that I am not getting how to get / submit the form data.</p>
  
  <p>Thank you for you help... :-)</p>