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 { HttpClient } from '@angular/common/http'; | |
import { NetworkService, ConnectionStatus } from './network.service'; | |
import { Storage } from '@ionic/storage'; | |
import { Observable, from } from 'rxjs'; | |
import { tap, map } from "rxjs/operators"; | |
const API_STORAGE_KEY = 'specialkey'; | |
export class YoutubeService { |
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 { Network } from '@ionic-native/network/ngx' | |
import { BehaviorSubject, Observable } from 'rxjs'; | |
import { ToastController, Platform } from '@ionic/angular'; | |
export enum ConnectionStatus { | |
Online, | |
Offline | |
} |