本文整理汇总了TypeScript中ionic-angular.IonicModule类的典型用法代码示例。如果您正苦于以下问题:TypeScript IonicModule类的具体用法?TypeScript IonicModule怎么用?TypeScript IonicModule使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了IonicModule类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [App],
imports: [
IonicModule.forRoot(App)
],
providers: [
EventsBroadcasterProvider,
VoiceAlertProvider,
TimerStorageProvider,
SmartAudioProvider,
TimerProvider,
TimerSoundProvider,
BackgroundModeProvider,
TtsProvider,
{ provide: StatusBar, useClass: StatusBarMock },
{ provide: SplashScreen, useClass: SplashScreenMock },
{ provide: Platform, useClass: PlatformMock },
{ provide: NativeAudio, useClass: NativeAudioMock },
{ provide: BackgroundMode, useClass: BackgroundModeMock },
{ provide: StorageLocalProvider, useClass: StorageInMemoryProvider },
// { provide: Events, useClass: EventsMock },
{ provide: TextToSpeech, useClass: TextToSpeechMock }
]
});
}));
示例2: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [MyApp],
imports: [
IonicModule.forRoot(MyApp),
HttpClientTestingModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: createTranslateLoader,
deps: [HttpClient]
}
})
],
providers: [
TranslateService,
{ provide: StatusBar, useClass: StatusBarMock },
{ provide: SplashScreen, useClass: SplashScreenMock },
{ provide: Platform, useClass: PlatformMock },
{ provide: CategoriesService, useClass: CategoriesMock },
{ provide: AnalyticsProvider, useClass: AnalyticsMock },
{ provide: AuthService, useClass: AuthMock },
{ provide: UserProfileService, useClass: UserProfileMock },
{ provide: AuthDataPersistenceService, useClass: AuthDataPersistenceMock },
]
}).compileComponents();
}));
示例3: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [IonicModule.forRoot(LoaderComponent)],
declarations: [LoaderComponent]
})
.compileComponents();
}));
示例4: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [MyApp],
providers: [
],
imports: [
IonicModule.forRoot(MyApp)
]
}).compileComponents();
}));
示例5: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [DaysSelectorComponent],
imports: [
IonicModule.forRoot(DaysSelectorComponent)
],
providers: [
providers.DaysEncodingProvider
]
});
}));
示例6: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [MyApp],
imports: [
IonicModule.forRoot(MyApp)
],
providers: [
StatusBar,
SplashScreen
]
})
}));
示例7: beforeEach
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
IonicModule.forRoot(AppComponent),
RouterTestingModule,
TranslateModule.forRoot(),
CoreModule
],
declarations: [AppComponent],
providers: []
});
TestBed.compileComponents();
});
示例8: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
IonicModule.forRoot(LoginComponent),
RouterTestingModule,
TranslateModule.forRoot(),
ReactiveFormsModule,
CoreModule
],
declarations: [LoginComponent]
})
.compileComponents();
}));
示例9: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
TranslateModule.forRoot(),
IonicModule.forRoot(ShellComponent),
CoreModule
],
providers: [
{ provide: AuthenticationService, useClass: MockAuthenticationService }
]
})
.compileComponents();
}));
示例10: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [CopayApp],
schemas: [NO_ERRORS_SCHEMA],
imports: [
IonicModule.forRoot(CopayApp),
ProvidersModule,
HttpClientTestingModule,
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }
})
],
providers: [{ provide: Logger, useClass: LoggerMock }]
});
}));