so i'm making angular application using webpack, , wanted bring in bootstrap styling.
i installed 'ui-bootstrap' using npm install angular-ui-bootstrap --save-dev
, , imported in app.js
, , passed dependency angular.module('myapp', [dependencies....])
. worked, , getting javascript functionality bootstrap elements. e.g. toggle button working fine.
however, there no styling. button styled regular html button.
so, tried doing same thing bootstrap
npm. gave me error saying jquery not defined (i using vanilla js), tried getting jquery npm, , still gave me error saying jquery not defined.
what's correct process getting angular-ui-bootrap functionality , styling while using webpack?
solution:
import css module bootstrap
no need inject bootstrap elements in angular module, since bootstrap not have angular components. do, however, inject angular-ui-bootstrap.
Comments
Post a Comment