πŸ“Š Angular
Q. What does ChangeDetectorRef.detach() do?
  • (A) Destroys the component
  • (B) Stops change detection for the component
  • (C) Refreshes the view
  • (D) Triggers routing
πŸ’¬ Discuss
βœ… Correct Answer: (B) Stops change detection for the component

Explanation: detach() removes the component from change detection tree.

Explanation by: Kartik Sharma
detach() removes the component from change detection tree.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
5
Total Visits
πŸ“½οΈ
26 d ago
Published
πŸŽ–οΈ
Kartik Sharma
Publisher
πŸ“ˆ
85%
Success Rate