angularngrx-effectsngrx-store-4.0

Trying to populate a ng-select component and @ngrx/store from the store but giving undefined the response


This is the outputs and the code is in this link github snippet

Stacktrace


Solution

  • You need to use:

    import { createSelector } from "@ngrx/store";
    

    to get an slice from the app state and another function to get an slice to the property you need.