A

Admin • 802.91K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Route reuse strategy controls when components are destroyed or reused.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.