import { EntityMetadataMap } from '@ngrx/data';
      
      const entityMetadata: EntityMetadataMap = {
        Model1: {},
      };
      export const entityConfig = {
        entityMetadata
      };
      Typescript language logo
      your recipe card header background

      Angular NgRx Entity DataMap

      0

      0

      avatar
      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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.