Angular NgRx Entity DataMap



    Jose Romero

    Angular TypeScript Recipes

    The code declares a variable called entityMetadata and sets its value to a Map. The Map contains a key for each entity in the app. The first key in the Map is for the model1 entity, and the second key is for the model2 entity.

    Library: angular

    Shortcut: angular.ngrx.datamap

    import { EntityMetadataMap } from '@ngrx/data';
    const entityMetadata: EntityMetadataMap = {
      Model1: {},
    export const entityConfig = {
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.