Created
January 31, 2018 12:39
-
-
Save YonathanMeguira/30c443b9e44c11eab84e6a131b8a8a97 to your computer and use it in GitHub Desktop.
add the interceptor
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, AfterViewInit, ViewChild, ElementRef } from '@angular/core'; | |
import { HTTPStatus } from './services/RxJS/HTTPListener.service'; | |
declare var bodymovin: any; | |
@Component({ | |
selector: 'app-root', | |
template: `<div [hidden] = !HTTPActivity`, | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { | |
HTTPActivity: boolean; | |
constructor(private httpStatus: HTTPStatus) { | |
this.httpStatus.getHttpStatus().subscribe((status: boolean) => {this.HTTPActivity = status; console.log(status)}); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment