-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(data): add entity config in app module declaration for ng-add (#…
- Loading branch information
1 parent
025578a
commit 6ca3056
Showing
6 changed files
with
99 additions
and
12 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
modules/data/schematics/ng-add/files/entity-metadata.ts.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { EntityMetadataMap, EntityDataModuleConfig } from '@ngrx/data'; | ||
|
||
const entityMetadata: EntityMetadataMap = {}; | ||
|
||
const pluralNames = { }; | ||
|
||
export const entityConfig: EntityDataModuleConfig = { | ||
entityMetadata, | ||
pluralNames | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ export interface Schema { | |
project?: string; | ||
module?: string; | ||
migrateNgrxData?: boolean; | ||
entityConfig?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters