Expose TestmessagerComponent on /testmessager

This commit is contained in:
Kristóf Tóth 2018-03-04 10:46:53 +01:00
parent 3f642dee69
commit 9d80fc44fc
2 changed files with 4 additions and 1 deletions

View File

@ -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({

View File

@ -13,6 +13,7 @@ export class TestmessagerComponent implements OnInit {
ngOnInit() {
this.webSocketService.connect();
this.webSocketService.observeKey('shell').subscribe(); // TODO: wtf
}
sendTestMessage() {