To inject a service into another service, the service being injected should have the _____ decorator.
- @Component()
- @Inject()
- @Injectable()
- @Service()
To inject a service into another service in Angular, the service being injected should have the @Injectable() decorator.
Loading...
Related Quiz
- In a reactive form, the _____ method is used to update the value of a form control programmatically.
- What specific challenges does Angular Elements solve when it comes to using Angular components in different environments?
- How can you test that a directive correctly responds to changes in input values?
- How can you access a specific form control within a form group in Angular?
- You are building a real-time dashboard that fetches data from multiple sources. You want to update the UI as soon as any of the data sources emit a new value. Which RxJS operator would be most suitable for this use case?