As I understand, you want to listen to events dispatched by a component s parent from the child component s controller control function specifically.
There is not a query selector like parent < component which you can put in the child controller s control function to listen to parent events.
通常,我只想向儿童控制员补充家长的看法,然后,你可以听听听听听听听会。 但是,我假定你没有这样做,因为你试图向不同的控制者或某些人下放权力。
You could fire an event in the child component whenever that parent event occurs. Inside the parent controller you could do it like this:
var child = parent.down( child );
child.fireEvent( myOwnEventName , arg1, arg2, arg3, etc);
然后,你将给我增加一个手稿。 • 担任儿童控制员的控制职务,以掌握你想要的逻辑。
如果父母没有控制人,那么你就应该把母子成分作为孩子控制者的一种观点。