How to use the ionic-angular.IonicModule.forRoot function in ionic-angular

To help you get started, we’ve selected a few ionic-angular 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 dtaalbers / ionic-example-app / app / src / app / app.module.ts View on Github external
import { ProgressBarComponent } from '../components/progress-bar/progress-bar';

@NgModule({
    declarations: [
        MyApp,
        HomePage,
        TabsPage,
        CameraPage,
        ImagePickerPage,
        UploadExamplePage,
        AboutPage,
        ProgressBarComponent
    ],
    imports: [
        BrowserModule,
        IonicModule.forRoot(MyApp)
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        MyApp,
        HomePage,
        TabsPage,
        CameraPage,
        ImagePickerPage,
        UploadExamplePage,
        AboutPage
    ],
    // We are using the custom written prodvider
    // here instead of the array that is normally
    // added here
    providers: AppProvider.get_providers()
})
github alanhg / CodeTracker / src / app / app.module.ts View on Github external
WelcomePage,
        AboutPage,
        ContactPage,
        HomePage,
        ProjectPage,
        CommitsPage,
        DashboardPage,
        ProfilePage,
        LeaderboardsPage,
        LeaderdetailPage,
        UseragentsPage
    ],
    imports: [
        BrowserModule,
        HttpModule,
        IonicModule.forRoot(AuthApp)
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        AuthApp,
        WelcomePage,
        AboutPage,
        ContactPage,
        HomePage,
        ProjectPage,
        CommitsPage,
        DashboardPage,
        ProfilePage,
        LeaderboardsPage,
        LeaderdetailPage,
        UseragentsPage
    ],
github transistorsoft / cordova-background-geolocation-SampleApp / src / app / app.module.ts View on Github external
import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { Dialogs } from '@ionic-native/dialogs/ngx';

import { MyApp } from './app.component';

@NgModule({
  declarations: [
    MyApp
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp
  ],
  providers: [
    StatusBar,
    SplashScreen,
    Dialogs,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}
github ionicthemes / ionic2-socialsharing-with-deeplinking-example / src / app / app.module.ts View on Github external
import { SplashScreen } from "@ionic-native/splash-screen";
import { StatusBar } from "@ionic-native/status-bar";
import { BrowserModule } from '@angular/platform-browser';

@NgModule({
  declarations: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
    TabsPage,
    ItemDetailsPage
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
    TabsPage,
    ItemDetailsPage
  ],
  providers: [
    SocialSharing,
    Deeplinks,
    SplashScreen,
    StatusBar
  ]
github lohanitech / ion-electron / src / app / app.module.ts View on Github external
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';

import { Electron } from '../providers/electron'


@NgModule({
  declarations: [
    MyApp,
    HomePage,
    ListPage
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp),
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    ListPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    Electron,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}
github bitpay / bitcore-mnemonic / app / src / app / app.module.ts View on Github external
import { PagesModule, HomePage, BlocksPage, NodeStatusPage, VerifyMessagePage } from '../pages';
import { BlocksService, StorageService } from '../services';
import { ApiProvider } from '../providers/api/api';
import { CurrencyProvider } from '../providers/currency/currency';
import { BlocksProvider } from '../providers/blocks/blocks';
import { TxsProvider } from '../providers/transactions/transactions';

@NgModule({
  declarations: [
    InsightApp
  ],
  imports: [
    BrowserModule,
    HttpModule,
    PagesModule,
    IonicModule.forRoot(InsightApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    InsightApp,
    HomePage,
    BlocksPage,
    NodeStatusPage,
    VerifyMessagePage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    StorageService,
    BlocksService,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    ApiProvider,
github ralscha / blog / secure-todo / src / app / app.module.ts View on Github external
import {PasswordPage} from "../pages/password/password";
import {SplashScreen} from '@ionic-native/splash-screen';
import {StatusBar} from '@ionic-native/status-bar';
import {TodoProvider} from "../providers/todo/todo";


@NgModule({
  declarations: [
    MyApp,
    HomePage,
    EditPage,
    PasswordPage
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp),
    IonicStorageModule.forRoot({name: 'todo', driverOrder: ['sqlite', 'indexeddb']})
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    EditPage,
    PasswordPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    TodoProvider
  ]
})
github oktadeveloper / okta-spring-boot-angular-auth-code-flow-example / crypto-pwa / src / app / app.module.ts View on Github external
import { IonicStorageModule } from '@ionic/storage';
import { HttpClientModule } from '@angular/common/http';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';

import { MyApp } from './app.component';
import { HoldingsProvider } from '../providers/holdings/holdings';
import { UserProvider } from '../providers/user/user';

@NgModule({
  declarations: [
    MyApp
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp, {
      preloadModules: true
    }),
    IonicStorageModule.forRoot(),
    HttpClientModule
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    HoldingsProvider,
    UserProvider
  ]
github scottopolis / ionic2-wp-api / src / app / app.module.ts View on Github external
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';

@NgModule({
  declarations: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
    TabsPage,
    PostDetail
  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
    TabsPage,
    PostDetail
  ],
  providers: [
  {provide: ErrorHandler, useClass: IonicErrorHandler},
  SplashScreen,
  StatusBar
  ]
})