dimanche 17 juillet 2016

Call jquery file from angular2

I need to add a file already created with jquery in my typescript

for example a file that add effect and animations to html (i have already jquery installed)

declare var jQuery:JQueryStatic;

 $("#id").nameOfMyclassOfjQuery({   });

for example I need to integrate a template that create a gridmanager to run this directly in index.html I need to call like this (after I added grid.js into my index.html)

 $(document).ready(function(){
 $("#id").grid({ );
 }); 

but if I'm inside a component.ts how to call this ?? when I put this the word grid is not known by jquery $("#id").grid({ );

Aucun commentaire:

Enregistrer un commentaire