mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-15 23:41:55 +00:00
Expose TestmessagerComponent on /testmessager
This commit is contained in:
parent
3f642dee69
commit
9d80fc44fc
@ -5,13 +5,15 @@ 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 { TestmessagerComponent } from './testmessager/testmessager.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: 'messages', component: MessagesComponent },
|
||||
{ path: 'testmessager', component: TestmessagerComponent }
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
@ -13,6 +13,7 @@ export class TestmessagerComponent implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
this.webSocketService.connect();
|
||||
this.webSocketService.observeKey('shell').subscribe(); // TODO: wtf
|
||||
}
|
||||
|
||||
sendTestMessage() {
|
||||
|
Loading…
Reference in New Issue
Block a user