diff --git a/src/app/participant-room/participant-room.component.html b/src/app/participant-room/participant-room.component.html index a77376131d5a7ca67ac8a929fbaa5c32d34526f1..7f6f4ae502fd512e1942a78eb5ee95fd69e3a91a 100644 --- a/src/app/participant-room/participant-room.component.html +++ b/src/app/participant-room/participant-room.component.html @@ -31,4 +31,5 @@ </mat-card-actions> </mat-card> </div> + <button mat-button color="primary" (click)="goBack()">Back</button> </div> diff --git a/src/app/participant-room/participant-room.component.ts b/src/app/participant-room/participant-room.component.ts index 1409939fd29038d92bbb1906a6c14ef0b811e1c3..53c52e01a09100bbc0b3b6b3f832ea5422615399 100644 --- a/src/app/participant-room/participant-room.component.ts +++ b/src/app/participant-room/participant-room.component.ts @@ -1,4 +1,6 @@ import { Component, OnInit } from '@angular/core'; +import { Room } from '../room'; +import { Location } from '@angular/common'; @Component({ selector: 'app-participant-room', @@ -7,6 +9,8 @@ import { Component, OnInit } from '@angular/core'; }) export class ParticipantRoomComponent implements OnInit { + room: Room; + roomId = '12 34 56 78'; roomName = 'Test Room'; roomDescription = 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore ' + @@ -15,10 +19,13 @@ export class ParticipantRoomComponent implements OnInit { 'tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea ' + 'rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.'; - constructor() { + constructor(private location: Location) { } ngOnInit() { } + goBack() { + this.location.back(); + } }