The _____ decorator is used to mark a class as available to be provided and injected as a dependency.
- @Component
- @Dependency
- @Injectable
- @Service
The @Injectable decorator is used to mark a class as available to be provided and injected as a dependency in Angular.
Loading...
Related Quiz
- Which Angular CLI command is used to generate a new component?
- Which directive is used to create a form control in template-driven forms?
- In the context of Angular Elements, what is the purpose of the createCustomElement() function?
- When using Angular Elements, the _____ function is used to convert an Angular component into a custom element.
- What is the primary purpose of using NgRx for state management in an Angular application?