问题
Would it be possible to use jQuery Bootstrap with Aurelia? There are some toggle buttons and other components I would like to use that come with Bootstrap.
So far, all of the examples I have seen are using jQuery UI along with Aurelia.
回答1:
Take a look at the skeleton-navigation project. It uses bootstrap by default:
https://github.com/aurelia/skeleton-navigation/tree/master/skeleton-es2016
The magic happens here
https://github.com/aurelia/skeleton-navigation/blob/master/skeleton-es2016/src/main.js#L1
import 'bootstrap';
Note that bootstrap is installed via JSPM.
来源:https://stackoverflow.com/questions/35492697/would-it-be-possible-to-use-jquery-bootstrap-framework-along-with-aurelia