How do you detect memory leaks in Angular and fix them?
I'm developing an Angular application and am concerned about potential memory leaks that could impact performance. I suspect there may be issues, but I’m unsure how to detect them effectively. What tools or techniques can I use to identify memory leaks in my application? Additionally, once detected, what are the best practices for fixing these leaks to ensure optimal performance?