Skip to content

Instantly share code, notes, and snippets.

@amk221
Last active October 30, 2015 14:02
Show Gist options
  • Save amk221/df50ceec22a67178ce17 to your computer and use it in GitHub Desktop.
Save amk221/df50ceec22a67178ce17 to your computer and use it in GitHub Desktop.
Contextual components
{{#select-box as |sb|}}
{{sb.option label='Foo'}}
{{sb.option}}
{{sb.option}}
{{/select-box}}
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Component.extend({
});
{{yield (hash option=(component 'select-box-option'))}}
{
"version": "0.4.14",
"EmberENV": {
"FEATURES": {
"ember-contextual-components": true
}
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "http://builds.emberjs.com/canary/ember.debug.js",
"ember-template-compiler": "http://builds.emberjs.com/canary/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment