title: Angular 4 add vendor js files
body: <p>I am working on an angular 4 project right now. I have my js files linked to in the index file that my app component gets rendered to. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Angular QuickStart&lt;/title&gt;
      &lt;base href="/"&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      
      &lt;!-- Fonts --&gt;
      &lt;link rel="stylesheet" href="css/montserrat.css"&gt;
      &lt;!-- CSS --&gt;
      &lt;!-- Bootstrap CSS
   ============================================ --&gt;
      &lt;link rel="stylesheet" href="css/bootstrap.min.css"&gt;
      &lt;!-- Icon Font CSS
   ============================================ --&gt;
      &lt;link rel="stylesheet" href="css/eleganticons.min.css"&gt;
      &lt;!-- Plugins CSS
   ============================================ --&gt;
      &lt;link rel="stylesheet" href="css/plugins.css"&gt;
      &lt;!-- Style CSS
   ============================================ --&gt;
      &lt;link rel="stylesheet" href="style.css"&gt;
  
      &lt;!-- Polyfill(s) for older browsers --&gt;
      &lt;script src="node_modules/core-js/client/shim.min.js"&gt;&lt;/script&gt;
  
      &lt;script src="node_modules/zone.js/dist/zone.js"&gt;&lt;/script&gt;
      &lt;script src="node_modules/systemjs/dist/system.src.js"&gt;&lt;/script&gt;
  
      &lt;script src="systemjs.config.js"&gt;&lt;/script&gt;
      &lt;script&gt;
        System.import('main.js').catch(function(err){ console.error(err); });
      &lt;/script&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
      &lt;my-app&gt;
        &lt;!--Preloader--&gt;
        &lt;div id="loading" class="preloader"&gt;
            &lt;div class="loading-center"&gt;
                &lt;div class="loading-center-absolute"&gt;
                    &lt;div class="object object_one"&gt;&lt;/div&gt;
                    &lt;div class="object object_two"&gt;&lt;/div&gt;
                    &lt;div class="object object_three"&gt;&lt;/div&gt;
                    &lt;div class="object object_four"&gt;&lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
      &lt;/my-app&gt;
    &lt;/body&gt;
  
    &lt;!-- JS --&gt;
  
  &lt;!-- jQuery JS
  ============================================ --&gt;
  &lt;script src="js/vendor/jquery-1.12.0.min.js"&gt;&lt;/script&gt;
  &lt;!-- Bootstrap JS
  ============================================ --&gt;
  &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;!-- Plugins JS
  ============================================ --&gt;
  &lt;script src="js/plugins.js"&gt;&lt;/script&gt;
  
  &lt;!-- Main JS
  ============================================ --&gt;
  &lt;script src="js/main.js"&gt;&lt;/script&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>When I load this page non of the javascript in those files are being executed, but when I put the component HTML code into the index file like above the js is executed and everything works. What do I need to do to make my js work. This is my first angular project so I am still trying to learn the in and outs of the framework.</p>