how to get a file path from assets folder with just knowing a string in it’s name in angular 17
i have a file with a name main-5WAPJH7.js in a child project’s folder whose dist is contained in assets folder of my another project. I want to load this file in a component so that the child project runs in that component. But the string after main- keeps on changing when dist folder is created. I want to get the path of this file using just ‘main’.
how to get a file path from assets folder with just knowing a string in it’s name in angular 17
i have a file with a name main-5WAPJH7.js in a child project’s folder whose dist is contained in assets folder of my another project. I want to load this file in a component so that the child project runs in that component. But the string after main- keeps on changing when dist folder is created. I want to get the path of this file using just ‘main’.