Sample for $scope.apply()