title: Import 2 JavaScript functions with the same name in Angular project
body: <p>I imported JavaScript files into Angular project like this: <a href="https://www.truecodex.com/course/angular-6/how-to-use-external-js-files-and-javascript-code-in-angular" rel="nofollow noreferrer">https://www.truecodex.com/course/angular-6/how-to-use-external-js-files-and-javascript-code-in-angular</a></p>
  <p>It's all working fine. However, there is one problem. I have 2 JavaScript files that I imported that have the same name. So, when I use it in my component's typescript like this:</p>
  <pre><code>declare const CMenu: any
  </code></pre>
  <p>there is a name collision between those 2 functions.</p>
  <p>Is there a way to import JavaScript files, just for one particular Angular module. For example, to specify in Angular.json in which module to import the JavaScript file. I actually have a lot of JS files that use same function names, and I need to use those from 2 different modules (each module using different function with the same name).</p>