How to use the angulartics2/routerlessmodule.Angulartics2RouterlessModule.forRoot function in angulartics2

To help you get started, we’ve selected a few angulartics2 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 apppresser / ap3 / src / app / app.module.ts View on Github external
export class MyMissingTranslationHandler implements MissingTranslationHandler {
  handle(params: MissingTranslationHandlerParams) {
    return params.key;
  }
}

@NgModule({
  declarations: [MyApp, Iframe],
  imports: [
    IonicModule.forRoot(MyApp),
    IonicStorageModule.forRoot(),
    BrowserModule,
    HttpModule,
    HttpClientModule,
    AudioPlayerComponentModule,
    Angulartics2RouterlessModule.forRoot([Angulartics2GoogleAnalytics]),
    TranslateModule.forRoot({
      loader: {
        provide: TranslateLoader,
        useFactory: HttpLoaderFactory,
        deps: [HttpClient]
      }
    })
  ],
  bootstrap: [IonicApp],
  entryComponents: [MyApp, Iframe],
  providers: [
    { provide: ErrorHandler, useClass: IonicErrorHandler },
    {
      provide: MissingTranslationHandler,
      useClass: MyMissingTranslationHandler
    },

angulartics2

Vendor-agnostic web analytics for Angular2 applications

MIT
Latest version published 3 months ago

Package Health Score

81 / 100
Full package analysis