@ionic/angular#IonicRouteStrategy TypeScript Examples
The following examples show how to use
@ionic/angular#IonicRouteStrategy.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: app.module.ts From ionic-cnn with MIT License | 6 votes |
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot({ mode: 'ios', backButtonText: '' }),
AppRoutingModule,
SuperTabsModule.forRoot(),
],
providers: [
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
Example #2
Source File: app.module.ts From casual-chess with GNU General Public License v3.0 | 6 votes |
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
IonicModule.forRoot(),
IonicStorageModule.forRoot(),
AngularFireModule.initializeApp(environment.firebase),
AngularFirestoreModule,
AppRoutingModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: (createTranslateLoader),
deps: [HttpClient]
}
}),
HttpClientModule,
SharedModule.forRoot(),
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production })],
providers: [
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
Example #3
Source File: app.module.ts From ionic-pwa-example-moment with MIT License | 6 votes |
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot({ mode: 'md' }),
AppRoutingModule,
ServiceWorkerModule.register('ngsw-worker.js', {
enabled: environment.production,
}),
HttpClientModule,
TranslocoRootModule,
ErrorReportModule.forRoot(),
],
providers: [
{
provide: RouteReuseStrategy,
useClass: IonicRouteStrategy,
},
],
bootstrap: [AppComponent],
})
export class AppModule {}
Example #4
Source File: app.module.ts From blog2020 with MIT License | 6 votes |
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
HttpClientModule,
NgHcaptchaModule.forRoot({
siteKey: environment.SITE_KEY
}),
IonicModule.forRoot()
],
providers: [
{provide: RouteReuseStrategy, useClass: IonicRouteStrategy}
],
bootstrap: [AppComponent]
})
export class AppModule {
}
Example #5
Source File: app.module.ts From blog2020 with MIT License | 6 votes |
@NgModule({
declarations: [AppComponent, HomePage],
imports: [BrowserModule,
CommonModule,
HttpClientModule,
FormsModule,
IonicModule.forRoot(),
RouterModule.forRoot(routes, { useHash: true, relativeLinkResolution: 'legacy' })
],
providers: [
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {
}
Example #6
Source File: app.module.ts From blog2020 with MIT License | 6 votes |
@NgModule({
declarations: [
AppComponent,
SignInPage,
UsersPage,
MessagesPage,
TabsPage,
RelativeTimePipe
],
imports: [
BrowserModule,
FormsModule,
IonicModule.forRoot(),
AppRoutingModule
],
providers: [
{provide: RouteReuseStrategy, useClass: IonicRouteStrategy}
],
bootstrap: [AppComponent]
})
export class AppModule {
}
Example #7
Source File: app.module.ts From capture-lite with GNU General Public License v3.0 | 6 votes |
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
SharedModule,
BrowserModule,
BrowserAnimationsModule,
IonicModule.forRoot({ mode: 'md' }),
AppRoutingModule,
TranslocoRootModule,
FormlyModule.forRoot({ extras: { lazyRender: true } }),
FormlyMaterialModule,
JoyrideModule.forRoot(),
],
providers: [
{
provide: RouteReuseStrategy,
useClass: IonicRouteStrategy,
},
{
provide: MAT_SNACK_BAR_DEFAULT_OPTIONS,
useValue: { duration: 2500 },
},
],
bootstrap: [AppComponent],
})
export class AppModule {}
Example #8
Source File: app.module.ts From ionic-udemy with MIT License | 6 votes |
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [BrowserModule, IonicModule.forRoot({ mode: 'ios', backButtonText: '' }), AppRoutingModule],
providers: [
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
Example #9
Source File: app.module.ts From ionic-instagram with MIT License | 6 votes |
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot({ mode: 'ios', backButtonText: '' }),
AppRoutingModule
],
providers: [
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
Example #10
Source File: app.module.ts From Uber-ServeMe-System with MIT License | 6 votes |
@NgModule({
declarations: [
AppComponent,
],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot({
// toastEnter: customAlertEnter
}),
AppRoutingModule,
AngularFireModule.initializeApp(environment.firebase),
AngularFirestoreModule,
AngularFireStorageModule,
AngularFireAuthModule,
HttpModule,
AngularFireAuthModule,
FirebaseUIModule.forRoot(firebaseUiAuthConfig),
],
providers: [
Keyboard,
GoogleMaps,
NativeStorage,
GooglePlus,
StatusBar,
SplashScreen,
UserService,
AngularFirestore,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
Example #11
Source File: app.module.ts From angular-sqlite-app-starter with MIT License | 6 votes |
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule],
providers: [
SQLiteService,
DetailService,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class AppModule {}
Example #12
Source File: app.module.ts From mycoradar with MIT License | 6 votes |
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot(),
AppRoutingModule,
SharedModule,
FontAwesomeModule,
HttpClientModule,
IonicStorageModule.forRoot({
name: '_coradar',
driverOrder: ['indexeddb', 'sqlite', 'websql']
}),
],
providers: [
StatusBar,
SplashScreen,
BluetoothLE,
BLE,
File,
BackgroundMode,
BluetoothSerial,
{provide: RouteReuseStrategy, useClass: IonicRouteStrategy},
PushService,
DatabaseService,
Device,
UniqueDeviceID
],
bootstrap: [AppComponent]
})
export class AppModule {
}
Example #13
Source File: app.module.ts From Elastos.Essentials.App with MIT License | 6 votes |
providers: Provider[] = [
AppVersion,
Keyboard,
ScreenOrientation,
SplashScreen,
StatusBar,
FirebaseX,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
// { provide: RouteReuseStrategy, useClass: CustomRouteReuseStrategy },
//{ provide: TranslateModule, deps: [TranslationsLoader.loadAllModulesAndMerge("")]}
]
Example #14
Source File: app.module.ts From contact-tracer with MIT License | 6 votes |
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot(),
AppRoutingModule,
AngularFireModule.initializeApp(environment.firebase),
AngularFirestoreModule,
AngularFireAuthModule
],
providers: [
StatusBar,
SplashScreen,
{provide: RouteReuseStrategy, useClass: IonicRouteStrategy},
SQLite,
BluetoothLE,
DatePipe,
FirebaseAuthentication
],
bootstrap: [AppComponent]
})
export class AppModule {
}
Example #15
Source File: app.module.ts From ion-intl-tel-input with MIT License | 6 votes |
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot(),
AppRoutingModule
],
providers: [
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
Example #16
Source File: app.module.ts From BetterCrewlink-mobile with GNU General Public License v3.0 | 6 votes |
@NgModule({
declarations: [
AppComponent,
GlobalFooterComponent,
AvatarComponent,
GlobalHeaderComponent,
SettingsComponent,
GameComponent,
],
entryComponents: [],
imports: [
Ng2FittextModule,
BrowserModule,
IonicModule.forRoot(),
AppRoutingModule,
IonicStorageModule.forRoot(),
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }),
FormsModule,
],
providers: [
StatusBar,
SplashScreen,
BackgroundMode,
AppCenterCrashes,
AppCenterAnalytics,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
AndroidPermissions,
Platform,
],
bootstrap: [AppComponent],
})
export class AppModule {}
Example #17
Source File: app.module.ts From mylog14 with GNU General Public License v3.0 | 6 votes |
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
IonicModule.forRoot(),
AppRoutingModule,
HttpClientModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: (LanguageLoader),
deps: [HttpClient],
}
}),
CoreModule,
SharedModule,
LottieModule.forRoot({ player: playerFactory }),
ReactiveFormsModule,
FormlyModule.forRoot(),
FormlyIonicModule
],
providers: [
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule { }
Example #18
Source File: app.module.ts From Convert-Website-to-App with MIT License | 5 votes |
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule],
providers: [{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }],
bootstrap: [AppComponent],
})
export class AppModule {}
Example #19
Source File: app.module.ts From fyle-mobile-app with MIT License | 5 votes |
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot(),
AppRoutingModule,
BrowserAnimationsModule,
HttpClientModule,
GoogleMapsModule,
SharedModule,
HammerModule,
HttpClientJsonpModule,
SharedModule,
HammerModule,
],
providers: [
GooglePlus,
InAppBrowser,
{
provide: HAMMER_GESTURE_CONFIG,
useClass: MyHammerConfig,
},
{
provide: RouteReuseStrategy,
useClass: IonicRouteStrategy,
},
{
provide: HTTP_INTERCEPTORS,
useClass: HttpConfigInterceptor,
multi: true,
},
{
provide: ErrorHandler,
useValue: Sentry.createErrorHandler({
showDialog: false,
}),
},
CurrencyPipe,
ConfigService,
{
provide: APP_INITIALIZER,
useFactory: (configService: ConfigService) => () => configService.loadConfigurationData(),
deps: [ConfigService, RouterAuthService, TokenService, SecureStorageService, StorageService, Sentry.TraceService],
multi: true,
},
{
provide: Sentry.TraceService,
deps: [Router],
},
{
provide: MIN_SCREEN_WIDTH,
useValue: 375,
},
TitleCasePipe,
],
bootstrap: [AppComponent],
})
export class AppModule {}
Example #20
Source File: app.module.ts From onchat-web with Apache License 2.0 | 5 votes |
@NgModule({
declarations: [
AppComponent,
RtcComponent,
NotificationComponent,
],
imports: [
RippleModule,
SharedModule,
ActiveClassModule,
OverlayModule,
BrowserAnimationsModule,
BrowserModule,
HammerModule,
ReactiveFormsModule,
FormsModule,
HttpClientModule,
AppRoutingModule,
IonicModule.forRoot({
mode: 'ios',
backButtonText: '',
backButtonIcon: 'chevron-back-outline'
}),
SocketioModule.forRoot({
url: '',
options: {
path: environment.socketioPath,
autoConnect: false,
transports: ['websocket'] // 只使用WebSocket连接
}
}),
QuillModule.forRoot({
placeholder: '在此处插入文字…'
}),
ServiceWorkerModule.register('ngsw-worker.js', {
enabled: environment.production,
registrationStrategy: 'registerImmediately'
})
],
providers: [
{ provide: LOCALE_ID, useValue: 'zh-Hans' },
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
{ provide: HTTP_INTERCEPTORS, useClass: CacheInterceptor, multi: true },
{ provide: HTTP_INTERCEPTORS, useClass: BaseInterceptor, multi: true },
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
{ provide: ErrorHandler, useClass: GlobalErrorHandler }
],
bootstrap: [AppComponent]
})
export class AppModule { }