html代碼<div ng-controller="parentController">
<button-bar>
<button class="primary" ng-click="onPrimary1Click()">{{primary1Label}}</button>
<button class="primary">Primary2</button>
</button-bar></div>js代碼scope: false下buttonBar和primary都能得到controller中的test=222,但是如何能在buttonBar中修改test,并使primary獲取到修改后的值呢?
angularjs中嵌套的directive之間如何進(jìn)行scope通訊?
猛跑小豬
2018-08-10 06:05:10