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.
npm i @types/jquery --save
- open tsconfig.app.json 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