Home »
MCQs »
Aurelia MCQs
Which of the following decorators is used to define the dependencies that a component requires when using dependency injection in Aurelia?
12. Which of the following decorators is used to define the dependencies that a component requires when using dependency injection in Aurelia?
- @depend
- @inject
- @dependency
Answer: B) @inject
Explanation:
To utilize dependency injection in Aurelia, use the @inject decorator to define the dependencies required by a component.