Skip to content
Snippets Groups Projects
Verified Commit e4aca90a authored by Thomas Lenz's avatar Thomas Lenz Committed by Lukas Maximilian Kimpel
Browse files

Create participant-room component with simple button-elements in HTML view

parent 224133a4
No related merge requests found
...@@ -64,6 +64,7 @@ import { CreatorHomeScreenComponent } from './creator-home-screen/creator-home-s ...@@ -64,6 +64,7 @@ import { CreatorHomeScreenComponent } from './creator-home-screen/creator-home-s
import { CreateCommentComponent } from './create-comment/create-comment.component'; import { CreateCommentComponent } from './create-comment/create-comment.component';
import { CommentService } from './comment.service'; import { CommentService } from './comment.service';
import { ParticipantHomeScreenComponent } from './participant-home-screen/participant-home-screen.component'; import { ParticipantHomeScreenComponent } from './participant-home-screen/participant-home-screen.component';
import { ParticipantRoomComponent } from './participant-room/participant-room.component';
import { DataStoreService } from './data-store.service'; import { DataStoreService } from './data-store.service';
@NgModule({ @NgModule({
...@@ -85,7 +86,8 @@ import { DataStoreService } from './data-store.service'; ...@@ -85,7 +86,8 @@ import { DataStoreService } from './data-store.service';
CreateCommentComponent, CreateCommentComponent,
ParticipantHomeScreenComponent, ParticipantHomeScreenComponent,
CommentComponent, CommentComponent,
ContentAnswersComponent ContentAnswersComponent,
ParticipantRoomComponent
], ],
entryComponents: [ entryComponents: [
RegisterComponent, RegisterComponent,
......
<div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="20px" fxFill>
<mat-list fxLayout="column" fxLayoutGap="10px" fxLayoutAlign="center">
<mat-list-item>Room: {{roomId}}</mat-list-item>
<mat-list-item>
<button mat-fab color="primary">
<mat-icon>question_answer</mat-icon>
</button>
<button mat-fab color="primary">
<mat-icon>feedback</mat-icon>
</button>
</mat-list-item>
<mat-list-item>
<button mat-raised-button color="primary">Contents</button>
</mat-list-item>
<mat-list-item>
<button mat-raised-button color="primary">Comments</button>
</mat-list-item>
</mat-list>
</div>
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ParticipantRoomComponent } from './participant-room.component';
describe('ParticipantRoomComponent', () => {
let component: ParticipantRoomComponent;
let fixture: ComponentFixture<ParticipantRoomComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ParticipantRoomComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ParticipantRoomComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-participant-room',
templateUrl: './participant-room.component.html',
styleUrls: ['./participant-room.component.scss']
})
export class ParticipantRoomComponent implements OnInit {
roomId = '1';
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