This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13261|Reply: 1

[Angular] Angular6 introduces jquery and bootstrap

[Copy link]
Posted on 10/15/2018 2:20:28 PM | | | |
1. Install jquery and bootstrap in your project:
npm ls @angular/cli -- check the angular version


2. Since angular uses Typescrip{filter}t, you also need to install the corresponding type description module to let Typescrip{filter}t understand the syntax of jquery and bootstrap. Perform the following command to install:

3. In the project has angular.json file under build, write styles and scrip{filter}ts respectively:



4. Write some in your app.component.html and see the effect

5. After starting the program, it is found that the reference has been successful



Right-click to view the source code, and the result is as follows:







Previous:. Net distributed architecture: Session sharing based on Redis
Next:Modify the Angualr6 boot port
 Landlord| Posted on 10/15/2018 2:26:25 PM |
Create a new project order

ng new myProject -–style=scss
Projects with routing

ng new myProject -–style=scss --routing
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com