1: DOM operation directly changes the View value, but $scope.name is still 123 and has not changed. This is very important
2: ng operation, because $scope.name is still 123, and it is assigned a value of 123 at this time, it actually does nothing
3: ng operation, $scope.name is assigned a value of 124. At this time, the name changes, and angular goes back to update the value of the view. Because the value is the same, the effect cannot be seen. Then click the 2:ng operation, and $scope.name is assigned a value of 123. If it is changed, the value of the view will be updated synchronously.
Let me explain the reason first
1: DOM operation directly changes the View value, but $scope.name is still 123 and has not changed. This is very important
2: ng operation, because $scope.name is still 123, and it is assigned a value of 123 at this time, it actually does nothing
3: ng operation, $scope.name is assigned a value of 124. At this time, the name changes, and angular goes back to update the value of the view. Because the value is the same, the effect cannot be seen. Then click the 2:ng operation, and $scope.name is assigned a value of 123. If it is changed, the value of the view will be updated synchronously.
A bit convoluted
Supplement