I got error with "No provider for ObservableDataService"
ObservableDataService
:
https://github.com/sanex3339/bannerscreator/blob/master/resources/assets/typescript/Services/ObservableDataService/ObservableDataService.ts
Service in which ObservableDataService
will injected:
https://github.com/sanex3339/bannerscreator/blob/master/resources/assets/typescript/Services/UploadedTemplatesService/UploadedTemplatesService.ts
I describe ObservableDataService inside 'providers'
option of @Component
decorator of UploadedTemplatesService
.
But this error still happens. Why i still getting this error?
Important!: right now in repo for prevent this error i use global injection of ObservableDataService
throug bootstrap()
, but i does not need ObservableDataService
as singleton.
I need UploadedTemplatesService
as singleton in which new ObservableDataService
will injected.