Created
January 8, 2018 16:43
-
-
Save uno-de-piera/0ab966e0f7a9403da60e3e3869a0fe3c 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 { Injectable } from '@angular/core'; | |
import {Observable} from "rxjs/Observable"; | |
@Injectable() | |
export class AppService { | |
loading$: Observable<boolean> = Observable.of(false); | |
constructor() { } | |
fireLoader() { | |
this.loading$ = Observable.of(true); | |
} | |
stopLoader() { | |
this.loading$ = Observable.of(false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment