mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-16 01:51:57 +00:00
Implement routing module
This commit is contained in:
parent
95d616225f
commit
7bb6093672
21
src/app/app-routing.module.ts
Normal file
21
src/app/app-routing.module.ts
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
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';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{ path: '', redirectTo: '/dashboard', pathMatch: 'full'},
|
||||||
|
{ path: 'dashboard', component: DashboardComponent},
|
||||||
|
{ path: 'webide', component: WebideComponent },
|
||||||
|
{ path: 'shell', component: TerminalComponent },
|
||||||
|
{ path: 'messages', component: MessagesComponent }
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [ RouterModule.forRoot(routes) ],
|
||||||
|
exports: [ RouterModule ],
|
||||||
|
})
|
||||||
|
export class AppRoutingModule {}
|
Loading…
Reference in New Issue
Block a user