mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 12:42:55 +00:00 
			
		
		
		
	Expose TestmessagerComponent on /testmessager
This commit is contained in:
		@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user