I defined some fixed data in my ember component ‘One’, like this:
// coponents/component-one.js
import Ember from 'ember';
export default Ember.Component.extend({
someData: [
{ name: "Test A", numbers: [1,2,3,4,5] },
{ name: "Test B", numbers: [6,7,8,9,10] },
{ name: "Test C", numbers: [11,12,13,14,15] },
],
// my functions ...
});
Now I have another component, component ‘Two’, where I want to do something like this:
// templates/coponents/component-two.hbs
<span></span>
... how can I access someData in http://ift.tt/2nf1kiD ?
I do not know how to get.this ...
Aucun commentaire:
Enregistrer un commentaire