@angular/router#PreloadAllModules TypeScript Examples

The following examples show how to use @angular/router#PreloadAllModules. 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-routing.module.ts    From xBull-Wallet with GNU Affero General Public License v3.0 6 votes vote down vote up
@NgModule({
  imports: [RouterModule.forRoot(routes, {
    useHash: environment.platform !== 'website',
    preloadingStrategy: PreloadAllModules,
    // enableTracing: !environment.production
  })],
  exports: [RouterModule]
})
export class AppRoutingModule { }
Example #2
Source File: admin-routing.module.ts    From spurtcommerce with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(appRoutes, {
      preloadingStrategy: PreloadAllModules
    })
  ],
  exports: [RouterModule]
})
export class DefaultRoutingModule {}
Example #3
Source File: app-routing.module.ts    From ionic-pwa-example-moment with MIT License 6 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, {
      useHash: true,
      preloadingStrategy: PreloadAllModules,
    }),
  ],
  exports: [RouterModule],
})
export class AppRoutingModule {}
Example #4
Source File: app-routing.module.ts    From blog2020 with MIT License 6 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, {
      preloadingStrategy: PreloadAllModules,
      useHash: true
    })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
Example #5
Source File: app-routing.module.ts    From enterprise-ng-2020-workshop with MIT License 6 votes vote down vote up
@NgModule({
  // useHash supports github.io demo page, remove in your app
  imports: [
    RouterModule.forRoot(routes, {
      useHash: true,
      scrollPositionRestoration: 'enabled',
      preloadingStrategy: PreloadAllModules
    })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
Example #6
Source File: app-routing.module.ts    From angular-material-admin with MIT License 6 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, {
    useHash: true,
    preloadingStrategy: PreloadAllModules,
    relativeLinkResolution: 'legacy'
})
  ],
  exports: [RouterModule]
})

export class AppRoutingModule {
}
Example #7
Source File: app-routing.module.ts    From capture-lite with GNU General Public License v3.0 6 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, {
      preloadingStrategy: PreloadAllModules,
    }),
  ],
  exports: [RouterModule],
})
export class AppRoutingModule {}
Example #8
Source File: app-routing.module.ts    From casual-chess with GNU General Public License v3.0 5 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules, relativeLinkResolution: 'legacy' })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule { }
Example #9
Source File: app-routing.module.ts    From Uber-ServeMe-System with MIT License 5 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
Example #10
Source File: app-routing.module.ts    From blog2020 with MIT License 5 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, {preloadingStrategy: PreloadAllModules, useHash: true})
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
Example #11
Source File: app-routing.module.ts    From onchat-web with Apache License 2.0 5 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule { }
Example #12
Source File: app-routing.module.ts    From ionic-udemy with MIT License 5 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
Example #13
Source File: app-routing.module.ts    From ionic-instagram with MIT License 5 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
Example #14
Source File: app-routing.module.ts    From angular-sqlite-app-starter with MIT License 5 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule { }
Example #15
Source File: app-routing.module.ts    From Convert-Website-to-App with MIT License 5 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule { }
Example #16
Source File: app-routing.module.ts    From ionic-ecommerce-app with MIT License 5 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
Example #17
Source File: app-routing.module.ts    From mycoradar with MIT License 5 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
Example #18
Source File: app-routing.module.ts    From fyle-mobile-app with MIT License 5 votes vote down vote up
@NgModule({
  imports: [RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules, relativeLinkResolution: 'legacy' })],
  exports: [RouterModule],
})
export class AppRoutingModule {}
Example #19
Source File: app-routing.module.ts    From EXOS-Core with MIT License 5 votes vote down vote up
@NgModule({
    imports: [RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules, useHash: true })],
    exports: [RouterModule],
})
export class AppRoutingModule { }
Example #20
Source File: app-routing.module.ts    From contact-tracer with MIT License 5 votes vote down vote up
@NgModule({
    imports: [
        RouterModule.forRoot(routes, {preloadingStrategy: PreloadAllModules})
    ],
    exports: [RouterModule]
})
export class AppRoutingModule {
}
Example #21
Source File: app-routing.module.ts    From ion-intl-tel-input with MIT License 5 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule { }
Example #22
Source File: app-routing.module.ts    From Developing-Multi-platform-Apps-with-Visual-Studio-Code with MIT License 5 votes vote down vote up
@NgModule({
  imports: [RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules})],
  exports: [RouterModule]
})
export class AppRoutingModule { }
Example #23
Source File: app-routing.module.ts    From TheHungryRecipesApp with GNU General Public License v3.0 5 votes vote down vote up
@NgModule({
  imports: [RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })],
  exports: [RouterModule]
})
export class AppRoutingModule { }
Example #24
Source File: app-routing.module.ts    From mylog14 with GNU General Public License v3.0 5 votes vote down vote up
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule { }