I want to use js file and jquery functions in index.html of angular2
so, I typed
<head>
<script>document.write('<base href="' + document.location + '" />');</script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.33.3/es6-shim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.20/system-polyfills.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.6/angular2-polyfills.js"></script>
<script src="https://code.angularjs.org/tools/system.js"></script>
<script src="https://code.angularjs.org/tools/typescript.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.6/Rx.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.6/angular2.dev.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.6/router.dev.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.6/http.dev.js"></script>
<script src="javascript file path"></script>
<script>
System.config({
typescriptOptions: {emitDecoratorMetadata: true},
packages: {'modules': {format: 'register', defaultExtension: 'js'}}
});
System.import('modules/app/main')
.then(null, console.error.bind(console));
</script>
</head>
<body>
<my-app></my-app>
</body>
into the index.html and I can confirm the imported javascript file using
the "network" of chrome debug tool. and It has a regular flow that
javascript file is imported before importing angular2 files like .ts and .js files
but It is not operating.
I don't know why javascript files are not working.
please help me.