A.Html内容如下
<div>
    <div  kendo-gr> </div>
</div>

B.Html内容如下

 <ng-include  ></ng-include>

Error:
在testCtrl 中是无法使用$scope.textCtrl获取 testGrid ,是因为 ng-inclue会生成一个独立的子scope ,和controller上的scope独立开来   类似于js的原型链。

所以要在 testCtrl上的 $scope访问 A.Html的控件 则需要 像下面这样写


<div>
    <div  kendo-gr> </div>
</div>

  

相关文章: