I've been attempting to integrate Bootstrap 4 into my Angular 7 project, but I'm facing issues where the styles seem to be overridden by Bootstrap styles. The navigation bar and dropdown box also don't seem to function properly.
To add Bootstrap to my Angular 7 project, I followed the steps outlined in this guide. In the angular.json file, I included the following code:
"styles": [
"src/styles.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": [
"node_modules/jquery/dist/jquery.js",
"node_modules/popper.js/dist/umd/popper.js",
"node_modules/bootstrap/dist/js/bootstrap.bundle.js"
]
You can view the code on StackBlitz that demonstrates the issue here.
In contrast, a simple jQuery Bootstrap example works as expected, showcasing how Bootstrap functions without the Angular integration.