How to introduce ionic3 into jquery
This article mainly introduces "how to introduce jquery into ionic3". In daily operation, I believe many people have doubts about how to introduce jquery into ionic3. Xiaobian consulted all kinds of information and sorted out simple and easy operation methods. I hope to help you answer the doubts about "how to introduce jquery into ionic3"! Next, please follow the small series to learn together!
The specific steps are as follows:
1. First, create an ionic3 project.
Ionic start demo blank
2. After the ionic3 project is created, install the jquery dependency package in the project using the npm command;
npm install jquery --savenpm install @types/jquery --save
3. Finally, after the jquery dependency package is installed, jquery can be introduced by using the import method in the file that needs to be used;
import * as $ from "jquery"; At this point, the study of "how to introduce jquery in ionic3" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!