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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 17 Standalone Components #265

Open
SebasGonza opened this issue Feb 28, 2024 · 1 comment
Open

Angular 17 Standalone Components #265

SebasGonza opened this issue Feb 28, 2024 · 1 comment
Labels

Comments

@SebasGonza
Copy link

How can i implement this library in angular 17 with standalone components?

@gartu
Copy link

gartu commented Apr 17, 2024

You can do it by yourself like this :

const localStorageSyncReducer = (reducer: ActionReducer<unknown>): ActionReducer<unknown> => localStorageSync(config)(reducer);
const metaReducers: Array<MetaReducer<any, any>> = [localStorageSyncReducer];
const storeModule = StoreModule.forRoot(reducers, { metaReducers });

bootstrapApplication(AppComponent, {
      providers: [...(storeModule.providers ?? [])]
});

@BBlackwo BBlackwo changed the title Angular 17 Standalone Angular 17 Standalone Components Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants