How to use the @ionic/angular.IonicRouterModule.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 ionic-team / ionic / packages / demos / angular / src / app / app.module.ts View on Github external
import { HttpClientModule } from '@angular/common/http';

import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { PostTestService } from './post-test/post-test.service';

import { IonicAngularModule, IonicRouterModule } from '@ionic/angular';

@NgModule({
  declarations: [AppComponent],
  imports: [
    AppRoutingModule,
    BrowserModule,
    HttpClientModule,
    IonicAngularModule.forRoot(),
    IonicRouterModule.forRoot()
  ],
  bootstrap: [AppComponent],
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  providers: [PostTestService]
})
export class AppModule { }
github ionic-team / ionic / packages / demos / conference-app / angular / src / app / app.module.ts View on Github external
import { AppComponent } from './app.component';

import { ConferenceData } from './providers/conference-data';
import { UserData } from './providers/user-data';

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    AppRoutingModule,
    BrowserModule,
    HttpModule,
    IonicAngularModule.forRoot(),
    IonicStorageModule.forRoot(),
    IonicRouterModule.forRoot(),
  ],
  providers: [
    ConferenceData,
    InAppBrowser,
    SplashScreen,
    UserData
  ],
  bootstrap: [AppComponent],
  schemas: [
    CUSTOM_ELEMENTS_SCHEMA
  ]
})
export class AppModule { }

@ionic/angular

Angular specific wrappers for @ionic/core

MIT
Latest version published 25 days ago

Package Health Score

94 / 100
Full package analysis