Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Component leaking
import Ember from 'ember';
export default Ember.Component.extend({
people: ['donatello', 'michelangelo']
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
otherPeople: ['brak', 'zorak']
});
{{possibly-leaking-component}}
{{possibly-leaking-component people=otherPeople}}
<h3>Awesome People Component</h3>
<ul>
{{#each people as |person|}}
<li>{{person}}</li>
{{/each}}
</ul>
{
"version": "0.8.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "1.13.13",
"ember-data": "1.13.15",
"ember-template-compiler": "1.13.13"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment