feat: Added a chatroom component, that is navigatable by the chatroom's ID
[demos/kafka/chat] / src / app / chatrooms / chatrooms.component.html
index c265675..4df38de 100644 (file)
@@ -3,6 +3,6 @@
     <h3 class="panel-title">Please Choose a Chat-Room</h3>
   </div>
   <div class="panel-body">
-    <button *ngFor="let chatroom of chatrooms" type="button" class="btn btn-default btn-lg btn-block">{{chatroom.name}}</button>
+    <button *ngFor="let chatroom of chatrooms" routerLink="/chatroom/{{chatroom.id}}" type="button" class="btn btn-default btn-lg btn-block">{{chatroom.name}}</button>
   </div>
 </div>