Created
July 4, 2019 08:32
-
-
Save balocodes/eb43c21b0f813e170e2caf05ebf26a5b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from "@angular/core"; | |
import { CommsService } from "../comms-service.ts"; | |
@Component({ | |
... | |
}) | |
export class FirstComponent implements OnInit { | |
listStatus; | |
constructor(public _commService: CommsService) {} | |
ngOnInit() { | |
this._commService.waitingListStatus.subscribe( | |
(res: boolean) => { | |
this.listStatus = res; | |
}, (err: Error) => { | |
console.log("Error", err); | |
} | |
) | |
} | |
updateListStatus(status) { | |
this._commService.updateWaitingListStatus(status); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment