Skip to content
Snippets Groups Projects
Commit d43a197f authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Add maxLenght

parent 7cc46964
1 merge request!70Resolve "Adjust join room when room is not existing"
<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"/>
<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-form-field>
<button mat-fab color="primary" (click)="joinRoom(roomId.value)">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment