ng introduced jquery
1. In the project
- npm install --save jquery
Adding the corresponding component
- import * as $ from "jquery";
In the scripts angular.json: [] was added
- "./node_modules/jquery/dist/jquery.js"
Test whether the installation is successful, just write a simple pop, see whether you can achieve