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?

  1. @depend
  2. @inject
  3. @dependency

Answer: B) @inject

Explanation:

To utilize dependency injection in Aurelia, use the @inject decorator to define the dependencies required by a component.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.