<h2 mat-dialog-title>{{data.title}}</h2>
<mat-dialog-content class="mat-typography">
  <p>{{data.message}}</p>
</mat-dialog-content>
<mat-dialog-actions>
  <button mat-button type="submit" (click)="submit(true);">Submit</button>
  <button mat-button [mat-dialog-close]="">Cancel</button>
</mat-dialog-actions>