Skip to content
Snippets Groups Projects
Commit e41e0399 authored by David Noah Donges's avatar David Noah Donges
Browse files

Merge branch '22-participant-home-screen-html-template' into 'master'

Resolve "participant home screen - html template"

Closes #22

See merge request swtp-block-ws17/arsnova-angular-frontend!38
parents 35af445c 83bba21e
1 merge request!38Resolve "participant home screen - html template"
Pipeline #12910 passed with stage
in 33 seconds
......@@ -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 }
];
......
......@@ -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: [
......
<app-join-room></app-join-room>
<app-room-list></app-room-list>
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();
});
});
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() {
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment