Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
58 views

I have a module that I want to lazy load and it's required only after user click a specific button. I have used Spartacus featuresModule to lazily load the module along with the LayoutConfig. However, ...
Alis's user avatar
  • 1
3 votes
0 answers
63 views

I'm facing a persistent routing issue in my Angular application (version 15.2.9) after refactoring some features into lazy-loaded feature modules. The error NG04002 ("Error: NG04002 Error: ...
LFD97's user avatar
  • 33
1 vote
2 answers
698 views

In Angular, after a routerLink triggers a route change, the old component is only destroyed basically at the same time as the new component's initialization: This is being a problem for me because I ...
Tovar's user avatar
  • 475
1 vote
1 answer
58 views

loadChildren: () => import(/* webpackChunkName: "apc" */ 'advanced-payments-control') .then((m) => m.AdvancedPaymentsControlModule) .catch((e) => { ...
tlq's user avatar
  • 1,001
1 vote
2 answers
679 views

This is hour 10, I've tried 20 differnet configurations. the first set works fine. the children under company only evaluates localhost:4200/Employee-pub/1 -\> localhost:4200/Employee-pub/1 ...
Sean Miller's user avatar
1 vote
0 answers
271 views

I have a standalone components angular application running on v17.0.9 and using lazy loading to load all the components via loadChildren and loadComponent for the main layout component and other ...
HarshG's user avatar
  • 11
0 votes
2 answers
3k views

I am trying to create an plugin-based architecture with Angular where I want to load a module dynamically based on my need and access its component. Inside my service I have the following code. ...
Kiran's user avatar
  • 3,047
1 vote
1 answer
1k views

With the usage of standalone components in angular 17, instead of using modules we can directly lazyLoad components. But the issue is how to preload in this case? Earlier when lazy loading modules we ...
Tanushree Bhattacharji's user avatar
1 vote
1 answer
291 views

Working with Angular15. Create a lazy loading modules app-routing.module.ts const routes: Routes = [ { path: '', redirectTo: '/dashboard', patchMatch: 'full' }, { path: 'dashboard', ...
Gnik's user avatar
  • 7,508
2 votes
2 answers
7k views

I need to covert my Angular 16 project into Angular 17 And I used the routing module for lazy loading in Angular 16 my Angular 16 code was like this @NgModule({ declarations: [DashboardComponent], ...
shekhar's user avatar
  • 23
0 votes
0 answers
519 views

I have used Angular 11 in my single page application (SPA). I have used lazy load module in app-routing.module.ts. The issue is when I redirect to that module/component, it get the results from ...
prog1011's user avatar
  • 3,485
1 vote
1 answer
1k views

Is it possible to lazy load standalone component for multiple path's? Is this a proper way to do it? { path: 'path1', loadComponent: () => import('./someComponent.component').then(c => c....
Daniel's user avatar
  • 115
3 votes
1 answer
1k views

I have an Angular 17 application which uses standalone components, the initial routes are set up like so in app.routes.ts export const appRoutes: Array<Route> = [ { path: '', redirectTo: '/...
Chris Barr's user avatar
  • 34.6k
1 vote
1 answer
3k views

I saw recently that in Angular 17 you can simplify lazy loading by using the @defer directive. I'm wondering how to use it exactly to refactor my old code. Today I need to use the router for that but ...
PaulCrp's user avatar
  • 1,008
1 vote
0 answers
412 views

I have a shell application on angular 13 version and a remote application on angular 16 version.I I am doing lazy loading of the remote app using Module Federation Framework. In the remote app ...
user22270427's user avatar
0 votes
0 answers
474 views

I'm trying to create a micro service frontend in angular Using this code for route : import { loadRemoteModule } from './federation-utils'; import { Routes } from '@angular/router'; import { ...
user3653474's user avatar
  • 3,872
0 votes
2 answers
319 views

My angular project is currently running in Angular 8 and I use HeroDevs\Hero-Loader (https://www.npmjs.com/package/@herodevs/hero-loader/v/2.0.1) for lazy loading of modules for a page containing tabs....
GokuSS3's user avatar
  • 313
0 votes
0 answers
43 views

I'm facing an issue with Angular routing where I'm trying to navigate to a specific route that includes a route parameter, but it redirects me to a different path instead. I have a ToursComponent that ...
PLee's user avatar
  • 23
1 vote
1 answer
342 views

I am having an issues with the Lazy Loading. I can navigate between the pages, to paths are correct, but the lazy loaded pages are empty: http://localhost:4200/contact and http://localhost:4200/tours ...
PLee's user avatar
  • 23
0 votes
0 answers
66 views

I create a lazyLoad Directive to handle lazy load component. @Directive({ selector: '[lazyComponent]', }) export class LazyCompDirective<I, T extends LazyLoadedComponent<I>> implements ...
moussesj94's user avatar
2 votes
0 answers
258 views

Problem I have an Content Management System Angular application where all components are present in main component. Routes are created dynamically for this components (at runtime). E.g. a page is ...
Christy Golmez's user avatar
1 vote
1 answer
212 views

I am trying to open the component in MatDialog in angular 13 & ionic 6. Here is the sample code of how I open the component in MatDialog. Here my app.module.ts file import { NgModule } from '@...
Sharann Nagarajan's user avatar
2 votes
1 answer
2k views

Problem I have an Angular application where components are registered under a certain name to a global map using decorators. This name can then be used to dynamically create a route for this component ...
Simon's user avatar
  • 403
0 votes
0 answers
307 views

Started this app 5 years ago with Angular 2, till Angular 13 the dynamic routes lazy loaded works fine (with canActivate DynamicPathGuard), after a upgrade/update to NG 14/15 the browsers keeps ...
Patrick Ritskes's user avatar
1 vote
2 answers
3k views

I've created a Bootstrap component library for angular along with a demo application. However when building the application, the main bundle size is massive. More remarkably, adding components to the ...
Pieterjan's user avatar
  • 3,709
1 vote
1 answer
924 views

I am using Angular 8 with AOT compiler. I need to compile the modules dynamically when I click the button. In that module file, the component is declared. Testingmodule.ts import { NgModule } from '@...
Pykara_Developer's user avatar
2 votes
2 answers
1k views

TL;DR How can I have a conditional route with conditional import of the corresponding Angular library during build time, depending on a feature flag in the environment file? Background I'm having a ...
dude's user avatar
  • 6,126
1 vote
0 answers
417 views

I implemented lazy loading in my project and it works well: the components load only if the http route is requested. but when I implement canActive to prevent some users from accessing: the user can ...
tshishi's user avatar
  • 11
1 vote
0 answers
255 views

I have the list page. when i scroll down and click on one of the entry, it redirects to the detail page which opens up from the top. Now when i go back to the list page it should open up at the same ...
purvaDevIt's user avatar
0 votes
1 answer
473 views

I'm creating an Angular 13 app that has multiple components that can match the same URL although they would render different content (as in different components) based on the URL value. Thus I can ...
Carlos Torrecillas's user avatar
0 votes
1 answer
781 views

I have already taken a look at this question which had a lot of answers (all the same) but it could not fix my problem. Let me quickly lay out my project structure @NgModule({ declarations: [...
Wouter Vandenputte's user avatar
2 votes
0 answers
767 views

I'm trying to have an auth guard on every page of my Angular app. I can't get this to work for lazily loaded modules using the import() syntax. My lazy feature module: const routes: Routes = [ {path:...
Richard Castle's user avatar
1 vote
0 answers
797 views

The whole replication of my problem you can find on stackblitz https://stackblitz.com/edit/angular-x7omka?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp-routing.module.ts,src%2Fapp%2Fapp.module....
someusername12's user avatar
0 votes
0 answers
916 views

I have this router setup in my angular app (non-essential parts cut out for brevity): #AppRoutingModule const routes: Routes = [ { path: '', redirectTo: 'apprent', pathMatch: 'full' }, ...
shuffler's user avatar
0 votes
1 answer
884 views

as I already described in the title, I have some styles and script that I only want to load on one specific component but this causes a glitch in the view, looks like the page is displayed before the ...
Daniel's user avatar
  • 11
0 votes
1 answer
873 views

Our application is setup so users navigating to a certain set of routes are lazy loaded like below: { path: path1, component: Cmp1, loadChildren: () => LazyLoadedModule, } We use a router ...
trebek1's user avatar
  • 805
2 votes
1 answer
53 views

I am learning Angular and as a practice project, I am developing a front-end interface (with angular 13) for a Wordpress API served from a Docker container. The angular app has to display the list of ...
AmIanonIm's user avatar
0 votes
1 answer
4k views

I have my code as given below in app.component.html i.e. as soon as the user lands on the home screen; I want to lazy load the app-image-gallery & app-users-list and want to load them with some ...
Ashwini Kumar's user avatar
2 votes
0 answers
427 views

I have a module with the routes defined something like below. const routes: Routes = [ { path: '', pathMatch: 'full', component: RoleListViewComponent }, { path: RolesRoutes....
user3602300's user avatar
1 vote
1 answer
879 views

I am trying to lazy load the third-party libraries but I couldn't find any solution if anyone have any idea please share.
Balaji D's user avatar
1 vote
2 answers
3k views

I'm writing an angular 12 website with angular material. This project supports several domains and on different domains it supposed to show different theme. so what I'm trying to resolve here is to be ...
ufk's user avatar
  • 32.4k
0 votes
1 answer
552 views

I have an angular application where i use lazy loading for one of its module named 'security', i mentioned in routes array of app.routing.module.ts const routes: Routes = [ {path:'path1',component:...
Lisa's user avatar
  • 675
4 votes
1 answer
2k views

I have a jobs module which contains various components of my application. I want to do a lazy load of said module, however, it does not work when I try to access through the full path, that is, if I ...
scafrs's user avatar
  • 453
3 votes
2 answers
2k views

Is it possible to share the same instance for a service, between two lazy loaded modules, where that service is not provided at the root injector? Or at least, not provided until called upon? E.g. I ...
skwny's user avatar
  • 3,220
2 votes
1 answer
2k views

We have some modules that come with their own navigation bars. These nav bars are actual components and they activated in the global HeaderComponent of the app as soon as the corresponding route is ...
lampshade's user avatar
  • 2,924
1 vote
1 answer
2k views

I have to used browser animations module in my angular library because of my date picker and I am using lazy loading so I got several modules in my project when I want import my library in my modules ...
vaqef payfoon's user avatar
0 votes
1 answer
781 views

I want to split my angular project to load Website part in main module and application part in lazy loaded module. While everything worked before, now I am getting plenty of errors about compoentns ...
Filip Witkowski's user avatar
0 votes
1 answer
399 views

Trying to create CRUD opration with MEAN stack. Currently using Angular 11 cli, I've created lazy module. the lazy module has add/edit/list components. To list the data, I'm using Angular materials. ...
Mr. Learner's user avatar
  • 1,028
1 vote
1 answer
2k views

i already found that which looks similar but does not help me. Lazy loading Angular modules with latest Angular material design gives error My problem is, that i have lazy loading modules. app-routing....
IEE1394's user avatar
  • 1,269
0 votes
0 answers
254 views

I have a pretty big project and in order to reduce bundle size i decided to divide it into multiple modules with lazy load. and here is my app-routing const routes: Routes = [ { path: 'profile', ...
Behnam Aminazad's user avatar