mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-04-05 04:12:40 +00:00
24 lines
931 B
TypeScript
24 lines
931 B
TypeScript
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 {}
|