Skip to content

Instantly share code, notes, and snippets.

@alisdair
Last active August 29, 2016 12:32
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 alisdair/db947c720d260f5f4228a0ebd8d60c99 to your computer and use it in GitHub Desktop.
Save alisdair/db947c720d260f5f4228a0ebd8d60c99 to your computer and use it in GitHub Desktop.
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