Skip to content

Instantly share code, notes, and snippets.

@YonathanMeguira
Created January 31, 2018 12:39
Show Gist options
  • Save YonathanMeguira/30c443b9e44c11eab84e6a131b8a8a97 to your computer and use it in GitHub Desktop.
Save YonathanMeguira/30c443b9e44c11eab84e6a131b8a8a97 to your computer and use it in GitHub Desktop.
add the interceptor
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