How to use ionic-cache - 3 common examples

To help you get started, we’ve selected a few ionic-cache examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Jefferson227 / busca-cinema / src / app / app.module.ts View on Github external
import { ApiConnectorProvider } from '../providers/api-connector/api-connector';
import { ComponentsModule } from "../components/components.module";
import { LoadingProvider } from '../providers/loading/loading';
import { ApiProvider } from '../providers/api/api';
import { HttpClientModule } from "@angular/common/http";
@NgModule({
  declarations: [
    MyApp,
    HomePage,
    MovieDetailPage
  ],
  imports: [
    BrowserModule,
    HttpClientModule,
    IonicModule.forRoot(MyApp),
    CacheModule.forRoot(),
    ComponentsModule,
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    MovieDetailPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    ApiConnectorProvider,
    LoadingProvider,
    ApiProvider,
  ]
github UCL-INGI / StudUCLouvain / src / app / app.module.ts View on Github external
return new TranslateHttpLoader(http,'./assets/i18n/', '.json');
}



@NgModule({
  declarations: [
    MyApp
  ],
  exports: [
    TranslateModule
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp),
    CacheModule.forRoot({ keyPrefix: 'UCL-cache' }),
    IonicStorageModule.forRoot(),
    HttpModule,
    HttpClientModule,
    TranslateModule.forRoot({
        loader: {
            provide: TranslateLoader,
            useFactory: HttpLoaderFactory,
            deps: [HttpClient]
        }
    })
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp
  ],
  providers: [
github yannbf / may-the-4th / src / app / app.module.ts View on Github external
projectId: "star-warnic",
  storageBucket: "star-warnic.appspot.com",
  messagingSenderId: "459136741480"
};

@NgModule({
  declarations: [
    MyApp,
  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp, {
      preloadModules: true
    }),
    CacheModule.forRoot(),
    IonicStorageModule.forRoot(),
    AngularFireModule.initializeApp(firebaseConfig),
    AngularFireAuthModule,
    AngularFireDatabaseModule
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
  ],
  providers: [
    AppState,
    StatusBar,
    SplashScreen,
    Shake,
    NativeAudio,
    GoogleImagesProvider,

ionic-cache

Ionic cache service - cache request, data, promises etc.

MIT
Latest version published 3 years ago

Package Health Score

52 / 100
Full package analysis

Popular ionic-cache functions