Mithril.js: Should two child components talk to each other through their parent's controller?
问题 I'm a bit stuck looking for the right way to do the following. I have a parent component with two child components (see simplified code below). I would like to know the proper way for ChildA , when its button is pressed, to 'invoke' ChildB . They should communicate through the parent, but should they communicate through their controllers? In that case the parent has to pass its controller to the controllers of the children. Parent = { view: function () { m.component(ChildA); m.component