Q. How can you prevent a component from being recreated every time it is navigated to?

  • (A) Use route reuse strategy or keep component in memory
  • (B) Use *ngIf directive
  • (C) Use Angular services
  • (D) Use ngOnDestroy lifecycle hook
πŸ’¬ Discuss
βœ… Correct Answer: (A) Use route reuse strategy or keep component in memory
Explanation: Route reuse strategy controls when components are destroyed or reused.
Explanation by: Mr. Dubey
Route reuse strategy controls when components are destroyed or reused.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
88
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate