Last active
August 10, 2018 04:24
-
-
Save marianocodes/1f305f340a5b4f5a6408ed0e0d7bf10c to your computer and use it in GitHub Desktop.
NgRx Entities State
This file contains hidden or 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
const adapterCar = createEntityAdapter<Car>(); | |
const adapterPlace = createEntityAdapter<Place>(); | |
const carInitialState: CarState = adapterCar.getInitialState({ total: 0 }); | |
const placeInitialState: PlaceState = adapterPlace.getInitialState({ total: 0 }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment