Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
<h1>Welcome to {{appName}}</h1>
{{#link-to 'opportunities'}}Opportunities{{/link-to}}
import Ember from 'ember';
export default Ember.Route.extend({
model: function() {
return [
{id:0, name: 'opportunity1'},
{id:1, name: 'opportunity2'}
{{opportunity-select opportunities=model}}
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'select',
class: 'selectpicker',
selectedOpportunityId: null,
didInsertElement: function(){
this.$().selectpicker();'afterRender', this, () => $(this.get('element')).selectpicker());
//'afterRender', this, () => this.$().selectpicker());
{{#each opportunities as |opportunity|}}
import Ember from 'ember';
import config from './config/environment';
var Router = Ember.Router.extend({
location: config.locationType
}); {
this.route('opportunities', function() {
export default Router;
"version": "0.4.10",
"dependencies": {
"jquery": "",
"ember": "",
"ember-data": "",
"ember-template-compiler": "",
"bootstrap-select": ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment