Im looking for a way to access a variable from external js file which i included in assets/data folder
below is what i tried
placed test.js
in assets/data folder
in test.js
added variable testvar = "heloo from external js";
added script tag in src/index.html
<script src="assets/data/test.js"></script>
in app.component.ts
i added…
Top comments (0)