会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
-, -
博客园
首页
新随笔
联系
订阅
管理
2016年6月2日
ng-include 上ng-controller 无法获取控件
摘要: A.Html内容如下 B.Html内容如下 Error: 在testCtrl 中是无法使用$scope.textCtrl获取 testGrid ,是因为 ng-inclue会生成一个独立的子scope ,和controller上的scope独立开来 类似于js的原型链。 所以要在 testCtrl上的 $scope访问 A.Html的控件 则需要 像下面这样写 ...
阅读全文
posted @ 2016-06-02 09:24 N1900
阅读(461)
评论(0)
推荐(0)
编辑
公告