Skip to content
Snippets Groups Projects
room-join.component.html 843 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">
Lukas Mauß's avatar
Lukas Mauß committed
        <input matInput #roomId placeholder="Room-Id" [formControl]="roomFormControl"
               [errorStateMatcher]="matcher" maxlength="8"/>
        <mat-hint align="end">{{roomId.value.length}} / 8</mat-hint>
        <mat-error *ngIf="roomFormControl.hasError('required')">Please enter a room-id.</mat-error>
        <mat-error *ngIf="roomFormControl.hasError('minlength')">A room-id has exactly 8 digits.</mat-error>
      <button mat-fab color="primary" type="submit">
        <mat-icon>send</mat-icon>
      </button>
    </div>
Lukas Mauß's avatar
Lukas Mauß committed
</form>
Lukas Mauß's avatar
Lukas Mauß committed
<button mat-button color="primary" (click)="joinDemo()">Join demo room <mat-icon>lightbulb_outline</mat-icon></button>