πŸ“Š Angular
Q. What is the purpose of `ngOnInit` lifecycle hook?
  • (A) It is called after Angular initializes the component's data-bound properties
  • (B) It is called before the constructor
  • (C) It is used for module loading
  • (D) It is used for routing
πŸ’¬ Discuss
βœ… Correct Answer: (A) It is called after Angular initializes the component's data-bound properties

Explanation: `ngOnInit` is commonly used to perform initialization logic for the component.

Explanation by: Mr. Dubey
`ngOnInit` is commonly used to perform initialization logic for the component.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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