#15308·angular.js

$scope.$digest() (即不进行子作用域的消息传递)

作者: poshest创建于 2016年10月21日更新于 2021年4月25日
标签type: featurefrequency: lowcomponent: scopesseverity: inconvenient

对 1.x 的功能请求 ... 类似于 $scope.$digest(/*selfOnly*/true),当可选参数 selfOnly 为 true 时,只会对 $scope 进行消化,而不会对其子元素进行消化。我的动机已在 这里 进行了说明。

内容来源: angular/angular.js