using jQuery globally within Angular 2 application

后端 未结 1 732
野的像风
野的像风 2021-01-18 23:55

I\'m trying to figure out how to use jQuery globally within my angular 2 app, the only reasonable source I found so far is this stackoverflow answer However I can\'t seem to

相关标签:
1条回答
  • 2021-01-19 00:25

    Install the jquery typings using:

    npm install @types/jquery
    

    Include the jQuery.js file in your index.html

    And.. that's it I guess :)

    Good luck

    0 讨论(0)
提交回复
热议问题