为什么
$watch在页面加载后直接触发,如何防止这种情况?
@H_301_6@function MyCtrl($scope) { // Init scope vars $scope.data_copy = {}; // If data_copy changes... $scope.$watch("data_copy",function(newValue,oldValue) { alert("$watch triggered!"); },true); }