Skip to content

Instantly share code, notes, and snippets.

@BrightnBubbly
Created May 4, 2020 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrightnBubbly/07a17ca7e511d41be38040ad4d0f8300 to your computer and use it in GitHub Desktop.
Save BrightnBubbly/07a17ca7e511d41be38040ad4d0f8300 to your computer and use it in GitHub Desktop.
import { BrowserModule } from '@angular/platform-browser';
...
import { ChatComponent } from './chat/chat.component';
@NgModule({
declarations: [
...
ChatComponent,
],
imports: [
...
RouterModule.forRoot([
{ path: '', component: ChatComponent },
{ path: 'join', component: JoinComponent },
]),
],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment