Currently, I am developing an Angular application with Webpack and was looking to incorporate Bootstrap for styling purposes.
To achieve this, I first installed 'ui-bootstrap' using
npm install angular-ui-bootstrap --save-dev
. After installation, I imported it in my app.js
file and passed it as a dependency to the angular.module('myapp', [dependencies....])
. This successfully enabled the javascript functionality for bootstrap elements such as toggle buttons.
Despite this progress, I encountered a setback where the styling was not applied as expected. The button appeared plain without any bootstrap styles.
In attempt to resolve this issue, I decided to follow a similar process for installing regular bootstrap
using npm. However, during this process, I received an error indicating that jquery was not defined (since I was utilizing vanilla JS). Subsequently, I attempted to acquire Jquery through npm but encountered another error stating that Jquery was still not defined.
Can someone provide guidance on the correct procedure for obtaining both functional and styled features of angular-ui-bootrap while working with webpack?