Skip to content

Instantly share code, notes, and snippets.

@joostdevries
Last active June 25, 2016 18:10
Show Gist options
  • Save joostdevries/53081723f63269a9d1963fcb1b47c8ed to your computer and use it in GitHub Desktop.
Save joostdevries/53081723f63269a9d1963fcb1b47c8ed to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
items: [
{id: 1, name: 'Test one'},
{id: 2, name: 'Test two'}
]
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
{{ember-selectize
content=items
optionValuePath="content.id"
optionLabelPath="content.name"
selection=model.item
placeholder="Select an item" }}
{
"version": "0.9.3",
"EmberENV": {
"FEATURES": {}
},
"addons": {
"ember-cli-selectize":"latest"
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.6.0",
"ember-data": "2.6.1",
"ember-template-compiler": "2.6.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment