Skip to content

Instantly share code, notes, and snippets.

@daschl
Created October 5, 2017 09:11
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 daschl/3a039e081363baa9faa0dabd179a8f53 to your computer and use it in GitHub Desktop.
Save daschl/3a039e081363baa9faa0dabd179a8f53 to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export default Ember.Component.extend({
didReceiveAttrs() {
this._super(...arguments);
const viz = this.get('viz');
Ember.Logger.info(viz.get('type')); // <--here data is undefined?
},
});
{{#each model.visualizations as |v idx|}}
<div id="vis-{{idx}}">
<div class="chart"></div>
</div>
<p>id: {{v.id}}, type: {{v.type}}</p> <--- type printed here without issue
{{chart-widget viz=v}} {{/each}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment