guard $scope.diff