I've just joined an angular 5 project (new to the tech). I need to use functions from an external javascript file.
I found some information here : How to include external js file in Angular 4 and call function from angular to js
But it doesn't work. What am I doing wrong ?
I added my js file in the project and declared it in the .angular-cli.json :
"scripts": [ "./assets/js/kia.js" ],
Then I declared it in the typings.d.ts :
declare var kia: any;
And finally I tryed to import it in the file I use detail.component.ts :
import * as variable from 'kia';
I've the error : error TS2307: Cannot find module 'kia'.
Anyone knows how to fix this ?