Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Assertion Failed: A helper named "example.edit" could not be found
import Ember from 'ember';
export default Ember.Component.extend({
});
<h3>Another component</h3>
{{yield}}
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Component.extend({
});
<div class="my-component">
<h2>My Component</h2>
{{#another-component}}
{{yield (hash new=(component 'new-component' models=models))}}
{{/another-component}}
{{yield (hash edit=(component 'edit-component'))}}
</div>
import Ember from 'ember';
export default Ember.Component.extend({
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{#my-component as |example|}}
{{#if example.new}}{{#example.new}}Test{{/example.new}}{{/if}}
{{#if example.edit}}{{#example.edit}}What{{/example.edit}}{{/if}}
{{/my-component}}
{{outlet}}
<br>
<br>
{
"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": "2.7.0",
"ember-data": "2.7.0",
"ember-template-compiler": "2.7.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment