1
我有以下的代码块:是角度的摘要周期异步?
$scope.$apply(function() {
$scope.$emit("connectionadd.flowchart", data);
});
if (data.cancel) {
return false;
} else {
return true;
}
我想知道的执行是否能够达到内$scope.$apply
回调之前的一切if (data.cancel)
线执行?如果$digest
是异步的,则可能。