Created
February 1, 2017 11:04
-
-
Save ByJC/789ad0c2864b80941ed36c6198db6ffa 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 { Observable } from 'rxjs/Observable'; | |
import { ProgressBarService } from './progressbar.service'; | |
@Component({ | |
selector: 'app-progressbar', | |
templateUrl: './progressbar.component.html', | |
styleUrls: ['./progressbar.component.scss'], | |
providers:[] | |
}) | |
export class ProgressbarComponent implements OnInit { | |
isDisplay : boolean; | |
constructor(private $progressbar : ProgressBarService) { } | |
ngOnInit() { | |
this.$progressbar | |
.changes | |
.subscribe((display : boolean) => { this.isDisplay = display; }); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment