Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃摎[DOCS]: Setup on application root level #2105

Open
Redaloukil opened this issue Mar 9, 2024 · 1 comment
Open

馃摎[DOCS]: Setup on application root level #2105

Redaloukil opened this issue Mar 9, 2024 · 1 comment

Comments

@Redaloukil
Copy link

Redaloukil commented Mar 9, 2024

Description

I started playing a little bit with the library as a user for a project that I am working on.

With the introduction of standalone component since Angular 14.x.x, setting up Ngxs using ngxsModule.forRoot() on a standalone root AppComponent imports is no longer possible. here is a link describing a work around

What's the affected URL?**

https://www.ngxs.io/getting-started/installation

Expected vs Actual Behavior**

Additional hint about using appConfig providers on a standalone component

export const appConfig: ApplicationConfig = {
  providers: [
    provideRouter(routes),
    importProvidersFrom(NgxsModule.forRoot([AppState])),
  ],
};

馃敟 Exception or Error

Worth it also to discuss how to use forFeature on a standalone setup

@Redaloukil Redaloukil changed the title 馃摎[DOCS]: Setup on application route level 馃摎[DOCS]: Setup on application root level Mar 9, 2024
@hakimio
Copy link

hakimio commented Mar 10, 2024

provideStore() will be released soon.

EDIT: forFeature() discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants