10

How do I use Bootstrap in Ember.js

Is there any best practice somewhere? I know I can just use the styles / javascript behaviors of Bootstrap as is but it lacks communication with my application controllers,

Thanks

1
  • 1
    <link rel="stylesheet" type="text/css" href="css/bootstrap.css"> ... goes in head of index.html Commented Nov 30, 2013 at 13:53

2 Answers 2

14

Yes,

Try: https://github.com/ember-addons/bootstrap-for-ember

It is a set of Ember components styled with Bootstrap v3,

There's also a showcase available here:

http://ember-addons.github.io/bootstrap-for-ember

Few components already available such as: Modal Pane, Alerts, ProgressBar, Pills, Tab, Etc, Navigations, etc.

There are more special components that don't exist in Bootstrap such as Notifications: http://ember-addons.github.io/bootstrap-for-ember/dist/#/show_components/notifications

Goodluck.

Sign up to request clarification or add additional context in comments.

2 Comments

That components library is great but I'd also like to have Bootstrap's grid. For that I usually just include the css library. bootstrap-for-ember seems to have neglected that, unless I'm missing something?
The above mentioned is deprecated now. The replacement indexiatech has a larger scope than bootstrap JS.
1

You can try ember-bootstrap

Install using

ember install ember-bootstrap

and add

var app = new EmberApp(defaults, {
    'ember-bootstrap': {
        'importBootstrapCSS': true,
        'importBootstrapFont': true
    }
});

to your ember-cli-build.js and your good to go.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.