Comments (2)
This is working as expected. Routes need to be provided in the environment injector tree. Putting it in the component providers makes it available to the component but not services provided in root.
When migrating form loadChildren that uses modules, you should update your lazy children to just be a dynamic import of the routes array directly. It does not need to be provided anywhere at all. https://angular.io/guide/standalone-components#lazy-loading-many-routes-at-once
from angular.
If your routes are dynamic and you do need that factory then I think what you’re looking for is this #51532
from angular.
Related Issues (20)
- Lack of spacing in template-driven-forms #show-and-hide-validation-error-messages HOT 2
- Angular.dev docs Expand doesn't work HOT 1
- Angular Dev: Improvement UI snippet "docs-code" HOT 1
- FormTruple - variant o FormArray that can create controls on elements based on data HOT 1
- NG0911: View has already been destroyed. HOT 8
- Add a new "ChangeDetectionStrategy.DeepProxy" change detection strategy. HOT 4
- Security Vulnerability in @angular-devkit/build-angular@16 Due to Outdated Vite Dependency HOT 2
- Control flow migration hanging on formatting in rare cases
- "Angular Devtools only supports Angular versions 12 or above" on new Angular 17 SSR application HOT 3
- Docs: CLI command detail pages dont exist HOT 1
- Docs: Improve Syntax Highlighting HOT 4
- Docs: angular.dev/guide/testing missing image HOT 1
- Code example not displayed on Testing sections HOT 1
- Dynamic require is not supported HOT 2
- Cant Install angular libary into angular app for local development HOT 3
- viewTransition not working with eventCoalescing HOT 3
- No docs about how to test effects in component constructor HOT 7
- Pending APP_INITIALIZER doesn't trigger Hydration warning after APPLICATION_IS_STABLE_TIMEOUT HOT 3
- Creating a view inside an `effect` will track any signal reads that happen in the view HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular.