Currently, I'm actively involved in an Angular 5 project where I have included a custom JavaScript file called myfile.js inside the assets > js directory. In order to extract a particular value from myfile.js, I have created a component and now need to access that value within my component.ts file.