Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I integrate bootstrapjs with requirejs? #14397

Closed
guodong opened this issue Aug 15, 2014 · 5 comments
Closed

Can I integrate bootstrapjs with requirejs? #14397

guodong opened this issue Aug 15, 2014 · 5 comments

Comments

@guodong
Copy link

guodong commented Aug 15, 2014

My project uses requirejs as module loader, and jquery is loaded on demand, but bootstrapjs depends on jquery, since the optional way is load jquery twice by put jq&btsp script tag in head, and it works fine。But is there any way make it work with requirejs and load parts on demand?

@hnrch02
Copy link
Collaborator

hnrch02 commented Aug 15, 2014

We had AMD support planned for v3.2 but dropped it before releasing. I'm guessing we'll revisit it for v4. You can use it currently with the shim option of RequireJS, see for instance this gist.
Anyway, please direct how-to questions to StackOverflow. Thanks!

@guodong
Copy link
Author

guodong commented Aug 15, 2014

@hnrch02 That's really helpful。But in this way, can bootstrap parse html markup automatically? In my opinion of view, there should be measures like
require(['bs/markup-parse'], function(M){M.autoparse()})

@hnrch02
Copy link
Collaborator

hnrch02 commented Aug 15, 2014

What do you mean by automatically parsing markup? Are you referring to our data-api?

@guodong
Copy link
Author

guodong commented Aug 15, 2014

I mean components like tooltip
<a href="#" data-toggle="tooltip" title="Some tooltip text!">Hover over me</a>

@cvrebert
Copy link
Collaborator

Closing since this was punted to v4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants