扫码关注官方订阅号
B通过$emit和$broadcast同时向上和向下派送事件
A能够接收到事件
C不能够接收到事件
认证0级讲师
http://stackoverflow.com/questions/21522740/angularjs-to-propagate-event-between-directives-by-emit
A也可以使用$broadcast向下传递事件呀,然后C去接收。
$broadcast
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
http://stackoverflow.com/questions/21522740/angularjs-to-propagate-event-between-directives-by-emit
A也可以使用
$broadcast向下传递事件呀,然后C去接收。