Use JQuery in Angular7

Of course using Jquery in Angular2+ is not good practice, but in really urgent case is not bad to know how to use jquery in  angular7 components.

  1. npm i @types/jquery --save
  2. open and add jquery in types
    ex.  “types”: [“jquery”]

In some cases, if you need to touch the bootstrap, so needs to run this code too.

npm i -D @types/bootstrap


1 thought on “Use JQuery in Angular7

  1. Darla Jacks Reply

    What’s Taking place i am new to this, I stumbled upon this I have discovered
    It positively useful and it has helped me out loads.
    I am hoping to give a contribution & help other
    users like its helped me. Great job.

Leave a Reply

Your email address will not be published.