πŸ“Š Angular
Q. What is the significance of the 'providers' array in an @NgModule or @Component?
  • (A) To register services with the dependency injection system
  • (B) To declare components
  • (C) To import other modules
  • (D) To define routing paths
πŸ’¬ Discuss
βœ… Correct Answer: (A) To register services with the dependency injection system

Explanation: The providers array registers injectable services in a module or component scope.

Explanation by: Mr. Dubey
The providers array registers injectable services in a module or component scope.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
47
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate