Comments (4)
Hi !
I think this can be linked to #23279 : Async providers.
from angular.
Hi @JeanMeche
I believe it can yes 👍🏻. Close issue as you see fit please.
from angular.
I don't think it is linked to #23279 / async providers. It is more about creating a dedicated EnvironementInjector for the defer block. Currently there is no such capability but in most cases providing a service in root and injecting it into a component would do the trick.
There are some NgRx specific that I don't have enough understanding of. @brandonroberts is there a way of exposing NgRx stores in root?
from angular.
Yea, I don't think this is tied to async providers also. The NgRx Store is already provided at the root.
The ask was to be able to register NgRx providers at the component level, which is not possible currently because there is no equivalent ENVIRONMENT_INITIALIZER at the node injector level, and environment providers are incompatible at the component level by design. The either are registered within the bootstrapApplication
providers or route-level providers.
I've seen workarounds of people wrapping the store feature state providers in an NgModule/standalone injector and dynamically registering it using the component's injector as its parent, but its not ideal.
from angular.
Related Issues (20)
- New docs are not readable in some places HOT 2
- Just a little typo HOT 2
- Use of @starting-style makes Chrome crash HOT 8
- Enhance @defer views for responsive design HOT 4
- Page Not Found for See the NgComponentOutlet API reference for more information on the directive's capabilities. HOT 2
- Allow specifying "equal" function for signal based inputs. HOT 4
- Add a typed version of the ControlValueAccessor interface HOT 2
- Unable to find `zh-Hant-TW` or `zh-TW` locale in `@angular/common` HOT 4
- Can`t use signal inputs with custom elements HOT 2
- Encountering a NullInjectorError: No provider for _RadioControlRegistry! error when using @defer block HOT 3
- Best Practice for Base Component or Abstract Component HOT 3
- Multi-Project File Structure, Library suggestion for CSS and Assets HOT 3
- ngComponentOutlet HOT 2
- Custom events with outputs HOT 2
- Export ChangeDetectionScheduler and ChangeDetectionSchedulerImpl HOT 4
- NoopZone implementation: make onMicrotaskEmpty() and onStable() emit in the next microtask HOT 8
- inject() does not work when using an InjectionToken to avoid circular imports HOT 1
- Broken link to :host-context documentation HOT 2
- Angular Universal 17.1.1 Express REST API not working HOT 2
- preserveWhitespaces attribute doesn't work HOT 2
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.