Skip to content
Snippets Groups Projects
Commit 253ad756 authored by Thomas Lenz's avatar Thomas Lenz
Browse files

Include progress-spinner into creator-room component.

parent 47eeded4
No related merge requests found
<div fxLayout="column" fxLayoutAlign="start" fxLayoutGap="20px" fxFill>
<div fxLayout="row" fxLayoutAlign="center">
<mat-progress-spinner *ngIf="isLoading" mode="indeterminate"></mat-progress-spinner>
<mat-card *ngIf="room">
<mat-card-header>
<mat-card-title><h3 class="subheading-2">{{ room.name }}</h3></mat-card-title>
......
......@@ -10,6 +10,7 @@ import { ActivatedRoute } from '@angular/router';
})
export class RoomComponent implements OnInit {
room: Room = null;
isLoading = true;
constructor(protected roomService: RoomService,
protected route: ActivatedRoute) {
......@@ -22,6 +23,9 @@ export class RoomComponent implements OnInit {
}
getRoom(id: string): void {
this.roomService.getRoom(id).subscribe(room => this.room = room);
this.roomService.getRoom(id).subscribe(room => {
this.room = room;
this.isLoading = false;
});
}
}
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