ng-repeat + ng-controller创建的$ scope的更改是否会影响父级的$ scope?

时间:2016-02-29 21:57:44

标签: javascript angularjs angularjs-scope angularjs-ng-repeat

假设我有以下代码:

<div ng-controller='Controller1'>
    <div ng-repeat='item in things.list_itens' ng-controller='Controller2'>
    </div>
</div>

如果在Controller2的$ scope上,我通过ng-repeat上的更改来自Controller1的内容,它会影响父范围值吗?

// Controller2
$scope.item = "other thing";

它会对Controller1上的$scope.things.list_itens[x]生效吗?

0 个答案:

没有答案