Ember Latest

The latest build of Ember.

by TheWorkerAnt

HTML

<script src="http://builds.emberjs.com/handlebars-1.0.0-rc.3.js"></script>
<script src="http://builds.emberjs.com/ember-latest.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<script src="https://github.com/silviomoreto/bootstrap-select/raw/master/bootstrap-select.min.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css">
<script type="text/x-handlebars" data-template-name="index">
  <h2>Index Content:</h2>
  {{view Ember.Select contentBinding='content' id="withEmber"}}
  {{view Ember.Select contentBinding='content' id="withoutEmber"}}
    
   <select class="vanilla">
     <option>Vanilla</option>
     <option>Strawberry</option>
     <option>Chocolate</option>
   </select>
     
</script>

JavaScript

App = Ember.Application.create({});

App.IndexRoute = Ember.Route.extend({
  setupController: function(controller) {
    controller.set('content', ['a', 'b', 'c']);
  }
});

App.IndexView = Ember.View.extend({
    didInsertElement: function(){
        $(".vanilla").selectpicker()
        $("#withEmber").selectpicker()
        $("#withoutEmber")
          .removeClass("ember-view")
          .find("option")
          .removeClass("ember-view")
        .end()
        .selectpicker()
    }
});