so I have this class called StoreService :
import {Injectable} from "angular2/core";
import {BusinessAction} from "../business/BusinessAction";
import {AppStore} from "angular2-redux-util/dist/index";
@Injectable()
export class StoreService {
constructor(private appStore:AppStore, private businessActions:BusinessAction) {
this.appStore.dispatch(this.businessActions.fetchBusinesses());
}
}
And other components dependency inject this class "StoreService". However these components that inject StoreService complain that there is no provider for BusinessAction.
Now sure, I can provide BusinessAction to them via providers:[BusinssAction] or even do it at the main bootstrap provider(... and all is well....
BUT, I don't want to as only StoreService should know and care about BusinessAction, is there no way to tell the Injectors to pickup the instance of BusinessAction from StoreService which is the only class that's using BusinessAction anyways?
tx
Sean