title: How Import JS File in angular 6?
body: <p>how can I import a js file in angular 6. 
  I tried to implement a navbar and it contains js functions.
  thanks!!!</p>
  
  <p>I Add my js file called nav.js</p>
  
  <pre><code> "scripts": [
            "src/assets/js/nav.js"
          ]
  </code></pre>