import { Routes , RouterModule } from '@angular/router' ; import { HomeComponent } from "./home.component" ; import { ChatComponent } from "./chat.component" ; const routes = [ { path : '' , redirectTo : 'home' , pathMatch : 'full' } , { path : 'home' , component : HomeComponent } , { path : 'chat' , component : ChatComponent , outlet : "aux" } ] ; export const routing = RouterModule . forRoot ( routes ) ;