Hi all,
I have a component which call himself… this is the template calling the component:
discussione.hbs
{{messaggi-discussione messaggi=this.messaggi inviarisposta="inviaMessaggio"}}
and this is the component template calling himself using other parameters:
components/messaggi-discussione.hbs
{{messaggi-discussione messaggi=messaggio.risposte inviarisposta="inviaMessaggio"}}
this is the action section in the component discussione_controller.js
actions: {
inviaRisposta : function (msgcall) {
console.log('COMPONENT inviaRisposta');
this.sendAction('inviarisposta', risposta);
}
}
and this is the action section in the controller
actions: {
inviaMessaggio: function (datimessaggio) {
console.log('CONTROLLER inviaMessaggio');
}
}
the problem is that the controller action inviaMessaggio is called only from the first level component… nested components doesn’t bubble to the controller… why?
Surely im making something wrong…