Skip to content

Commit

Permalink
Merge pull request #301 from stefanoslig/migrate-to-signal-store-arti…
Browse files Browse the repository at this point in the history
…cle-lib

feat(article): Migrate to ngrx signals store
  • Loading branch information
stefanoslig committed Dec 22, 2023
2 parents 237872e + 0ceb5c3 commit 38a02a2
Show file tree
Hide file tree
Showing 35 changed files with 474 additions and 789 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/dist
/coverage

/.nx/cache
/.nx/cache
.angular
3 changes: 2 additions & 1 deletion apps/conduit/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApplicationConfig } from '@angular/core';
import { provideRouter, withViewTransitions } from '@angular/router';
import { provideRouter, withComponentInputBinding, withViewTransitions } from '@angular/router';
import { provideRouterStore } from '@ngrx/router-store';
import { ngrxFormsEffects, ngrxFormsFeature } from '@realworld/core/forms';
import { authGuard, tokenInterceptor } from '@realworld/auth/data-access';
Expand Down Expand Up @@ -52,6 +52,7 @@ export const appConfig: ApplicationConfig = {
},
],
withViewTransitions(),
withComponentInputBinding(),
),
provideStore({
errorHandler: errorHandlerFeature.reducer,
Expand Down
6 changes: 1 addition & 5 deletions libs/articles/data-access/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
export * from './lib/services/actions.service';
export * from './lib/+state/article-list/article-list.reducer';
export * from './lib/models/comment.model';
export * from './lib/+state/article/article.reducer';
export * from './lib/+state/article/article.effects';
export * from './lib/+state/article/article.selectors';
export * from './lib/+state/articles.actions';
export * from './lib/+state/article/article.actions';
export * from './lib/+state/article-list/article-list.actions';
export * from './lib/+state/article-list/article-list.selectors';
export * from './lib/+state/article-edit/article-edit.actions';
export { ArticleStore } from './lib/article.store';

export * as articleEditEffects from './lib/+state/article-edit/article-edit.effects';
export * as articleListEffects from './lib/+state/article-list/article-list.effects';
export * as articleEffects from './lib/+state/article/article.effects';
export * as articlesEffects from './lib/+state/articles.effects';

This file was deleted.

Loading

0 comments on commit 38a02a2

Please sign in to comment.