At the end of some processing I want to have an array of components that I want to render to the screen.
So I imagine I could do something like this:
const someComponent = SomeComponent.create({
param1: 'something',
param2: 'something else'
});
this.get('myComponents').pushObject(someComponent);
And then
{{#each myComponents as |component|}} //render these somehow {{/each}}
I can't use the component helper because I have a number of different components and they all accept different parameters.
Aucun commentaire:
Enregistrer un commentaire