Questions tagged [angular-lazyloading]

83 questions
0
votes
0 answers

Angular 7 - Change base URL of a single component inside Routes

All of my routes go to the plural version builder-jobs/ but I would like to know if I can change one to go to builder-job/:id but leave the rest as builder-jobs This is my current module file - builder-jobs.module.ts: import { NgModule } from…
Nate Beers
  • 1,355
  • 2
  • 13
  • 22
0
votes
2 answers

How to create/use lazyloading login component in Angular 9?

I have a login component in my Angular project, and it's worked fine. But now I changed my software's structure from single module to lazy loading modules. I created a PublicModule with LoginComponent, ForgotPasswordComponent and…
netdjw
  • 5,419
  • 21
  • 88
  • 162
0
votes
1 answer

Angular 8 : Lazy Loaded js files are not shown in Visual Studio Solution Explorer

I have created the code for implementing Lazy loading in my app. I can see the js files for lazyloaded modules in my DIST folder as below But these files are not visible in Solution Explorer in Visual Studio for checkin. Due to which the application…
0
votes
2 answers

Angular PreloadAllModules for lazyloaded modules is not working

I have successfully implemented lazy loading for my modules Products and Customers, and I am able to see the chunks when I navigate to respective routing. Now I want the above modules to preload, which can be done simply by adding {…
Sameer
  • 4,758
  • 3
  • 20
  • 41
0
votes
0 answers

Angular 9 IVY Lazy Load Component with AngularFireMessagingModule R3InjectorError(AppBrowserModule)[InjectionToken angularfire2.app.options

I have an Angular app which uses AngularFireMessagingModule for push notifications. With my current configuration I have this added in my AppBrowser module's imports array: AngularFireModule.initializeApp({ apiKey: "myAPIKey", projectId:…
Naveed Ahmed
  • 10,048
  • 12
  • 46
  • 85
-1
votes
0 answers

Angular Dynamic Routing mechanism with lazy-loading the Component

Situation: I need to write a Routing mechanism in Angular for an Application that has more than 1500 pages. Requirements: I need an Angular-Routing mechanism which is: Readable - I shouldn't have to include all my Route-list in my Angular…
-1
votes
1 answer

Angular lazy loading not working in webpack with @ngtools/webpack

Lazy module is eagerly loading, No separate chunks created for lazy modules I created a repo to reproduce the issue 1.Clone https://github.com/sameerthekhans/lazy-load-angular-webpack-temp.git 2.npm i 3.npm start 4.Output - No chunk files created in…
Sameer
  • 4,758
  • 3
  • 20
  • 41
-1
votes
1 answer

Angular lazy-loading implementation for NavMenuComponent component

I have implemented lazy-loading feature in my project by following the approach on official Lazy-loading feature module page. However, I have not idea aboıut how can I treat the modules or components that will not be directed as NavMenuComponent,…
user5871859
1 2 3 4 5
6