类似于这样的情况
<p ng-controller="parentCtr">
<p ng-controller="childCtr1">
<p ng-controller="childCtr2">
</p>
</p>
</p>
这些控制器都是在一个module里,我需要的是把parentCtr里的变量传给childCtr2
然后在childCtr2中通过$on获取
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
HTML
SCRIPT
SCOPE
Scope是继承的,如果只是单纯想获取父Scope的数据,这样就可以了