-2
在某些處理結束時,我想要一組要渲染到屏幕上的組件陣列。呈現接受不同參數的餘燼組件陣列
所以,我想我可以做這樣的事情:
const someComponent = SomeComponent.create({
param1: 'something',
param2: 'something else'
});
this.get('myComponents').pushObject(someComponent);
然後
{{#each myComponents作爲|成分|}} // 使這些莫名其妙 {{/每} }
我不能使用component
幫手,因爲我有許多不同的組件,它們都接受不同的參數。
是否有可能將所有參數折成attrs對象,然後使用組件助手? –