Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <form [formGroup]="createInvitationForm" (ngSubmit)="createInvitation()">
  2. <mat-form-field class="full-width-input">
  3. <input matInput type="text" formControlName="invitationComment" placeholder="Send a comment to the group(s)." required>
  4. <mat-error *ngIf="createInvitationForm.get('invitationComment').hasError('required')">
  5. Invitation comment required
  6. </mat-error>
  7. </mat-form-field>
  8. <button mat-raised-button type="submit" color="primary" [disabled]="selectedGroups.length === 0 || !createInvitationForm.valid">Send invitation to selected group(s)</button>
  9. </form>
  10.  
  11. this.createInvitationForm.reset();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement