Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save egh/a2ac39073727e3f28301ac62cc4d2e4d to your computer and use it in GitHub Desktop.
Save egh/a2ac39073727e3f28301ac62cc4d2e4d to your computer and use it in GitHub Desktop.
Component leaking
test;
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