X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fapp-routing.module.ts;h=4809bddf6340b17ce766d831a07ddcb30d26e967;hb=a172837fe042e8acb3030df2d84cd39615cf5a11;hp=57fcedcc125b9a89506fb5104b416305aab3a80d;hpb=db7f6b1498d71f47c219dac3247884fd159ad944;p=demos%2Fkafka%2Fchat diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 57fcedcc..4809bddf 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -2,10 +2,12 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { UserComponent } from "./user/user.component"; import { ChatroomsComponent } from "./chatrooms/chatrooms.component"; +import { ChatroomComponent } from "./chatroom/chatroom.component"; const routes: Routes = [ { path: 'user', component: UserComponent }, { path: 'chatrooms', component: ChatroomsComponent }, + { path: 'chatroom/:id', component: ChatroomComponent }, { path: '', redirectTo: '/user', pathMatch: 'full' }, ];