I am using angular 4 and i want use my JavaScript file to work globally and i have declared like this.
index.html <script src="assets/js/jquery-1.11.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
it is working when i have to use them in app-component.html, but problem is that i have another project which as different folders for different pages it is not working there.
if use the same code in app.component.html it is working fine, but i have different pages within that app/layouts/projects/, here in projects it is not working when i declare js link in the index.html, it works fine in app folder but not working inside it's sub-folder