Skip to content

Instantly share code, notes, and snippets.

@HeroicEric
Forked from ctusch/components.my-component.js
Created September 28, 2016 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HeroicEric/057acddeef6a157956bad2e64d5c6099 to your computer and use it in GitHub Desktop.
Save HeroicEric/057acddeef6a157956bad2e64d5c6099 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": "canary",
"ember-data": "2.8.0",
"ember-template-compiler": "canary",
"ember-testing": "canary"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment