your recipe card header background

    Angular NgRx Entity DataMap

    0

    0

    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 = {
      entityMetadata
    };
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.