Skip to content

Commit

Permalink
feat(data): Introduce Standalone API for NgRx Data
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshyadavdev committed Nov 1, 2022
1 parent 9eeca10 commit c884375
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
10 changes: 4 additions & 6 deletions modules/data/src/provide_entity_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ import { EntityCollectionReducerRegistry } from './reducers/entity-collection-re
import { EntityDispatcherFactory } from './dispatchers/entity-dispatcher-factory';
import { EntityDefinitionService } from './entity-metadata/entity-definition.service';
import { EntityCacheDispatcher } from './dispatchers/entity-cache-dispatcher';
import {
createEntityCacheSelector,
entityCacheSelectorProvider,
ENTITY_CACHE_SELECTOR_TOKEN,
} from './selectors/entity-cache-selector';
import { EntityCollectionServiceElementsFactory } from './entity-services/entity-collection-service-elements-factory';
import { EntityCollectionServiceFactory } from './entity-services/entity-collection-service-factory';
import { EntityServices } from './entity-services/entity-services';
Expand All @@ -59,6 +54,10 @@ import { EntityCacheReducerFactory } from './reducers/entity-cache-reducer';
import { EntityCache } from './reducers/entity-cache';
import { EntityCollection } from './reducers/entity-collection';
import { EntityAction } from './actions/entity-action';
import {
createEntityCacheSelector,
ENTITY_CACHE_SELECTOR_TOKEN,
} from './selectors/entity-cache-selector';

export interface EntityDataModuleConfig {
entityMetadata?: EntityMetadataMap;
Expand Down Expand Up @@ -133,7 +132,6 @@ export function _provideEntityDataWithoutEffects(
EntityActionFactory,
EntityCacheDispatcher,
EntityCacheReducerFactory,
entityCacheSelectorProvider,
EntityCollectionCreator,
EntityCollectionReducerFactory,
EntityCollectionReducerMethodsFactory,
Expand Down
2 changes: 2 additions & 0 deletions projects/standalone-app/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { RouterModule } from '@angular/router';
<br />
<a routerLink="/board">Boards</a>
<a routerLink="/board">Boards</a>
<router-outlet></router-outlet>
`,
})
Expand Down
9 changes: 9 additions & 0 deletions projects/standalone-app/src/app/board/board.route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Routes } from '@angular/router';
import { BoardComponent } from './board.component';

export const routes: Routes = [
{
path: '',
component: BoardComponent,
},
];

0 comments on commit c884375

Please sign in to comment.