I have custom1.js, custom2.js, and custom3.js JavaScript files that I need to load into Angular components component1, component2, and component3 respectively. Instead of adding these files to the index.html globally, I want to load them specifically for each component.
I have already looked at a similar question on Stack Overflow (answer), but I'm still not sure how to solve this problem exactly. Are there any other alternative methods to address this issue?
Thank you in advance.