I want to use jquery in a typescript file but when compiling I get the error in the attached image !! I open the browser console and there are no errors. I'm using visual studio code. Please help me
In your typescript
file you have to declare a variable before @component({...
declare var $:any;
And you have to put in your index.html
your file jquery
Example:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>