Skip to content

Instantly share code, notes, and snippets.

@GavinJoyce
Forked from simonihmig/components.my-component.js
Last active November 27, 2016 00:45
Show Gist options
  • Save GavinJoyce/37650f5b0476bde07cb5fe544e424d9b to your computer and use it in GitHub Desktop.
Save GavinJoyce/37650f5b0476bde07cb5fe544e424d9b to your computer and use it in GitHub Desktop.
hasBlock not available in partial for Ember 2.9.0-beta
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{#my-component}}
<p>Success! You are seeing the block template</p>
{{/my-component}}
{
"version": "0.10.4",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "beta",
"ember-data": "release",
"ember-template-compiler": "beta"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment