diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 7d4408707ad50f7f5f48e908d18be3bb29c0c90b..bb321d3b772d0bc8a53c9b099ddf52e87709755e 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -4,12 +4,14 @@ import { PageNotFoundComponent } from './page-not-found/page-not-found.component import { LoginScreenComponent } from './login-screen/login-screen.component'; import { RoomComponent } from './room/room.component'; import { CreatorHomeScreenComponent } from './creator-home-screen/creator-home-screen.component'; +import { ParticipantHomeScreenComponent } from './participant-home-screen/participant-home-screen.component'; const routes: Routes = [ { path: '', redirectTo: '/home', pathMatch: 'full' }, { path: 'home', component: LoginScreenComponent }, { path: 'creator', component: CreatorHomeScreenComponent }, { path: 'room/:roomId', component: RoomComponent }, + { path: 'participant', component: ParticipantHomeScreenComponent }, { path: '**', component: PageNotFoundComponent } ]; diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 3e5072769adae2e8c4177386b4dffac96a1eacc8..239d930dbbdfc5038402f13510781113b50bcf08 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -60,6 +60,7 @@ import { RoomService } from './room.service'; import { RoomListComponent } from './room-list/room-list.component'; import { CreatorHomeScreenComponent } from './creator-home-screen/creator-home-screen.component'; import { CreateCommentComponent } from './create-comment/create-comment.component'; +import { ParticipantHomeScreenComponent } from './participant-home-screen/participant-home-screen.component'; @NgModule({ declarations: [ @@ -77,6 +78,7 @@ import { CreateCommentComponent } from './create-comment/create-comment.componen RoomListComponent, CreatorHomeScreenComponent, CreateCommentComponent, + ParticipantHomeScreenComponent, CommentComponent ], entryComponents: [ diff --git a/src/app/participant-home-screen/participant-home-screen.component.html b/src/app/participant-home-screen/participant-home-screen.component.html new file mode 100644 index 0000000000000000000000000000000000000000..46484d6c127ae15865345db476e55141e4b8a74c --- /dev/null +++ b/src/app/participant-home-screen/participant-home-screen.component.html @@ -0,0 +1,2 @@ +<app-join-room></app-join-room> +<app-room-list></app-room-list> diff --git a/src/app/participant-home-screen/participant-home-screen.component.scss b/src/app/participant-home-screen/participant-home-screen.component.scss new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/src/app/participant-home-screen/participant-home-screen.component.spec.ts b/src/app/participant-home-screen/participant-home-screen.component.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..2ab3cc3b818b81d15bcc86792c382068a3781017 --- /dev/null +++ b/src/app/participant-home-screen/participant-home-screen.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ParticipantHomeScreenComponent } from './participant-home-screen.component'; + +describe('ParticipantHomeScreenComponent', () => { + let component: ParticipantHomeScreenComponent; + let fixture: ComponentFixture<ParticipantHomeScreenComponent>; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ParticipantHomeScreenComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ParticipantHomeScreenComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/participant-home-screen/participant-home-screen.component.ts b/src/app/participant-home-screen/participant-home-screen.component.ts new file mode 100644 index 0000000000000000000000000000000000000000..5cd9ffabd279bc119dd83ecd21f013b59e7f4f01 --- /dev/null +++ b/src/app/participant-home-screen/participant-home-screen.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-participant-home-screen', + templateUrl: './participant-home-screen.component.html', + styleUrls: ['./participant-home-screen.component.scss'] +}) +export class ParticipantHomeScreenComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +}