Skip to content
Snippets Groups Projects
join-room.component.html 536 B
Newer Older
Lukas Mauß's avatar
Lukas Mauß committed
<form (ngSubmit)="joinRoom(roomId.value)">
    <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="10px">
      <mat-form-field class="input-block">
        <input matInput #roomId placeholder="Room-Id" [formControl]="roomFormControl" [errorStateMatcher]="matcher"/>
        <mat-error *ngIf="roomFormControl.hasError('required')">Please enter a room-id.</mat-error>
      </mat-form-field>
      <button mat-fab color="primary" (click)="joinRoom(roomId.value)">
        <mat-icon>send</mat-icon>
      </button>
    </div>
Lukas Mauß's avatar
Lukas Mauß committed
</form>