Problem: Error: no provider for the store!
I load the storestripping module in main.ts:
platformBrowserDynamic().bootstrapModule(AppModule,[ provideStore({ characters, vehicles }) ]);
And by typing in auto.component.ts:
constructor( private _route: ActivatedRoute, private _router: Router, private _vehicleService: VehicleService, private _store: Store<any> ) {}
The full source code is here: GitHub , the latest version works on GitHub pages
PS. Adding Store to providers leads to another error: Unable to resolve all parameters for Store: (?,?,?).
angular ngrx ngrx-store
Anton Pegov
source share