diff --git a/src/image-loader.module.ts b/src/image-loader.module.ts index 584e9d8..1a26ade 100644 --- a/src/image-loader.module.ts +++ b/src/image-loader.module.ts @@ -1,7 +1,6 @@ import { ModuleWithProviders, NgModule } from '@angular/core'; import { ImgLoader } from './components/img-loader'; import { ImageLoader } from './providers/image-loader'; -import { ImageAttribute } from './components/image-attribute'; import { ImageLoaderConfig } from './providers/image-loader-config'; import { IonicModule } from 'ionic-angular'; import { File } from '@ionic-native/file'; diff --git a/src/providers/image-loader.ts b/src/providers/image-loader.ts index d619691..975ad78 100644 --- a/src/providers/image-loader.ts +++ b/src/providers/image-loader.ts @@ -3,7 +3,7 @@ import { DirectoryEntry, File, FileEntry, FileError } from '@ionic-native/file'; import { HttpClient } from '@angular/common/http'; import { normalizeURL, Platform } from 'ionic-angular'; import { ImageLoaderConfig } from './image-loader-config'; -import { Observable } from 'rxjs/Observable'; +import { fromEvent } from 'rxjs/observable/fromEvent'; import 'rxjs/add/operator/first'; interface IndexItem { @@ -64,7 +64,7 @@ export class ImageLoader { this.isInit = true; this.throwWarning('You are running on a browser or using livereload, IonicImageLoader will not function, falling back to browser loading.'); } else { - Observable.fromEvent(document, 'deviceready').first().subscribe(res => { + fromEvent(document, 'deviceready').first().subscribe(res => { if (this.nativeAvailable) { this.initCache(); } else {