YogeshChauhan . com

How to insert Bootstrap 4 in Angular 9 app?

in Angular on October 15, 2020

Adding Bootstrap in Angular app is as easy as adding it to any simple HTML application. 

Simply add this code to your src/index.html file head in your Angular application.



//add this code to head tag in src/index.html file

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>

Test it by running your angular app and adding some Bootstrap classes to any html elements in your src/app.component.html file.

amazon

Most Read

#1 How to check if radio button is checked or not using JavaScript? #2 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #3 How to add Read More Read Less Button using JavaScript? #4 How to uninstall Cocoapods from the Mac OS? #5 How to Use SQL MAX() Function with Dates? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

Jun 16 What are Stored Procedures for SQL Server? Jun 16 What are Class Constants in PHP? Jun 15 A short basic guide on states in React Jun 15 How to define constants in PHP? Jun 15 How to define visibility for a property in PHP? Jun 15 How to use @if and @else in SCSS?

You might also like these

What are CSS Specificity Rules and how does browser apply them?CSS4 different ways to create JavaScript ObjectsJavaScriptSolution to pod install fails with json error on Mac OS X 10.15 (or Mac OS Catalina)MiscAlways add associated labels to your Form elementsUI/UXWhat’s new in WordPress 5.5?WordPressaddcslashes() and addslashes() String Functions in PHPPHPHow to show widgets on the Appearance tab in WordPress?WordPressSQL ANY OperatorSQL/MySQLSequence generator (range) using JavaScript Array.from()JavaScriptAlternate Style Sheets in CSSCSSThe difference between isFinite() method and isFinite() function in JavaScriptJavaScriptHow to add transparent text on top of an image using CSS?CSS