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

Use the ngSubmit event to trigger the room creation

parent 8eb22f40
No related merge requests found
<form>
<form (ngSubmit)="addRoom(longRoomName.value, shortRoomName.value)">
<div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="10px">
<mat-form-field>
<input matInput #longRoomName class="input-block" type="text" placeholder="Name" maxlength="50"
......@@ -19,7 +19,7 @@
<mat-icon>close</mat-icon>
</button>
</mat-form-field>
<button mat-raised-button color="primary" (click)="addRoom(longRoomName.value, shortRoomName.value)">Create room
<button mat-raised-button color="primary" type="submit">Create room
</button>
</div>
</form>
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