-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Issue: The dependency injection system is designed to work only from services to components. The @Inject() decorator might already work out of the box to inject a service into another, but the @Injectable() metadata object doesn't support a services array to keep them in the bundle.
Solutions:
- Investigate if the
@Inject()decorator already allows to inject services into other services. - Add a
servicesarray to theInjectableMetadataobject like this:
@Injectable({
selector: 'myService',
services: [MyOtherService]
})
export class MyService {
@Inject() myOtherService: MyOtherService
}Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested