How to avoid memory leak in Angular 12 version?

Hi,

We are currently using Angular version 12 for a large-scale application. Recently, we encountered a memory leak issue that results in high CPU usage and approximately 80,000 DOM nodes being created when navigating quickly between tabs. Garbage collection (GC) does not seem to clear these nodes, which causes the application to slow down.

Has anyone faced a similar issue? If so, please share any suggestions or solutions to resolve this.

Thanks,
Ramu