import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { DashboardComponent } from './dashboard/dashboard.component'; import { WebideComponent } from './webide/webide.component'; import { TerminalComponent } from './terminal/terminal.component'; import { MessagesComponent } from './messages/messages.component'; import { TestmessengerComponent } from './testmessenger/testmessenger.component'; const routes: Routes = [ { path: '', redirectTo: '/dashboard', pathMatch: 'full'}, { path: 'dashboard', component: DashboardComponent}, { path: 'webide', component: WebideComponent }, { path: 'shell', component: TerminalComponent }, { path: 'messages', component: MessagesComponent }, { path: 'testmessenger', component: TestmessengerComponent } ]; @NgModule({ imports: [ RouterModule.forRoot(routes) ], exports: [ RouterModule ], }) export class AppRoutingModule {}