Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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,
]
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: [
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,