mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2024-12-05 02:21:31 +00:00
Hardcode routes to router module to eliminate weird dependency
This commit is contained in:
parent
448a2bc862
commit
208edd9533
@ -7,16 +7,15 @@ import { TerminalComponent } from './terminal/terminal.component';
|
||||
import { MessagesComponent } from './messages/messages.component';
|
||||
import { ConsoleComponent } from './console/console.component';
|
||||
import { TestmessengerComponent } from './testmessenger/testmessenger.component';
|
||||
import { config } from './config';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: '', redirectTo: '/dashboard', pathMatch: 'full'},
|
||||
{ path: config.dashboard.route, component: DashboardComponent},
|
||||
{ path: config.ide.route, component: IdeComponent },
|
||||
{ path: config.terminal.route, component: TerminalComponent },
|
||||
{ path: config.messages.route, component: MessagesComponent },
|
||||
{ path: config.console.route, component: ConsoleComponent },
|
||||
{ path: config.testmessenger.route, component: TestmessengerComponent }
|
||||
{ path: 'dashboard', component: DashboardComponent},
|
||||
{ path: 'ide', component: IdeComponent },
|
||||
{ path: 'terminal', component: TerminalComponent },
|
||||
{ path: 'messages', component: MessagesComponent },
|
||||
{ path: 'console', component: ConsoleComponent },
|
||||
{ path: 'testmessenger', component: TestmessengerComponent }
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
Loading…
Reference in New Issue
Block a user