Skip to content
Snippets Groups Projects
Verified Commit 0a56f6b7 authored by Lukas Maximilian Kimpel's avatar Lukas Maximilian Kimpel
Browse files

Add component to view all contents of a room on participant side

parent 0661e04e
Branches
Tags
No related merge requests found
<div fxLayout="column" fxLayoutAlign="start" fxLayoutGap="20px" fxFill>
<div fxLayout="row" fxLayoutAlign="center">
<mat-tab-group>
<!--
<mat-tab *ngFor="let content of contents">
<app-participant-choice-content *ngIf="content.format === ContentType.CHOICE"></app-participant-choice-content>
<app-participant-text-content *ngIf="content.format === ContentType.TEXT"></app-participant-text-content>
</mat-tab>
-->
<mat-tab label="Text">
<app-participant-text-content></app-participant-text-content>
</mat-tab>
<mat-tab label="Choice">
<app-participant-choice-content></app-participant-choice-content>
</mat-tab>
</mat-tab-group>
</div>
</div>
mat-tab-group {
width: 100%;
max-width: 800px;
}
mat-tab-body {
padding: 20px;
}
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ParticipantContentCarouselPageComponent } from './participant-content-carousel-page.component';
describe('ParticipantContentCarouselPageComponent', () => {
let component: ParticipantContentCarouselPageComponent;
let fixture: ComponentFixture<ParticipantContentCarouselPageComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ParticipantContentCarouselPageComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ParticipantContentCarouselPageComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
import { Content } from '../content';
import { ContentType } from '../content-type';
@Component({
selector: 'app-participant-content-carousel-page',
templateUrl: './participant-content-carousel-page.component.html',
styleUrls: ['./participant-content-carousel-page.component.scss']
})
export class ParticipantContentCarouselPageComponent implements OnInit {
ContentType: ContentType;
contents: Content[];
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