Closed lghiur closed 8 years ago
Hi, how do you create an instance of UserActions? It should be instantiated by Angular's injector to get http
injected.
Ha, that was it, silly me, thanks a lot, you saved my day :+1:
constructor (actions: UserActions, router: Router, http: Http) {
this.ngRedux = new NgRedux();
this.ngRedux.provideStore(AppStore);
this.actions = actions;
This works now.
Glad to hear that :+1:
Hello @shuhei ,
I have the following code, but http is not recognized inside the constructor, it logs undefined:
I want to add that it works really well inside a component. I can't find the reason for that. Do you have any advices?
Many thanks, Laurentiu