我想将服务注入另一个服务:
@Injectable()
export class Dispatcher {
}
@Injectable()
export class TodoStore {
constructor(@Inject(Dispatcher) dispatcher:Dispatcher){
}
}
Run Code Online (Sandbox Code Playgroud)
但我总是得到错误:Dispatcher没有提供者!
谢谢.
angular ×1