Skip to content

Instantly share code, notes, and snippets.

@simonihmig
Forked from GavinJoyce/components.my-component.js
Last active November 27, 2016 00:46
Show Gist options
  • Save simonihmig/5a29e54ab543a2668f1d725375d2e0ea to your computer and use it in GitHub Desktop.
Save simonihmig/5a29e54ab543a2668f1d725375d2e0ea to your computer and use it in GitHub Desktop.
yielding values in partials throws in canary
import Ember from 'ember';
export default Ember.Component.extend({
someProperty: 'Success'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{#my-component as |value|}}
<p>{{value}}! You are seeing the block template</p>
{{/my-component}}
yield:[{{yield someProperty}}]
{
"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": "canary",
"ember-data": "release",
"ember-template-compiler": "canary"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment