Skip to content

Instantly share code, notes, and snippets.

@ctusch
Created September 28, 2016 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ctusch/7d531ee89c0b39c6aeaa0d71b843c682 to your computer and use it in GitHub Desktop.
Save ctusch/7d531ee89c0b39c6aeaa0d71b843c682 to your computer and use it in GitHub Desktop.
tag-less component with bound id property
import Ember from 'ember';
export default Ember.Component.extend({
tagName: ''
});
import Ember from 'ember';
export default Ember.Controller.extend({
myProperty: 'd2'
});
{{my-component id=myProperty}}
{
"version": "0.10.5",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.8.0",
"ember-data": "2.8.0",
"ember-template-compiler": "2.8.0",
"ember-testing": "2.8.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment