Reputation: 1810
I would like to use in one of my components this effect:
https://codepen.io/linrock/pen/Amdhr
my first approach was to try to translate the javascript to typescript, but then I gave up and I decided to copy the js file that you can find in the codepen and try to import it in my application.
Then, I copied the file in src/app/scripts/confetti.js and then I tried to import it in my index.html
<script src="scripts/confetti.js"></script>
But I get that the file confetti.js is not found when I run my app.
Do you know what I am doing wrong?
Upvotes: 1
Views: 4652
Reputation: 423
you need to copy your js file to "src/resources/js/" and then include it in your .angular-cli.json
"scripts": [
"resources/js/confetti.js"
],
Upvotes: 4