Sorry I'm not sure how to ask this question but the code is pretty straight forward I think. I want to check if the data being returned from the DB has changed and if so update the scope. However when I do the compare it always comes back as different and does the update:
$scope.tickets = Ticket.tickets.query();
updateTickets = $interval(function(){
 var deferred = $q.defer();
 $scope.curTickets = $scope.tickets;
 deferred.resolve(Ticket.tickets.query());
 var promise = deferred.promise;
 promise.then(function(newTickets){
  $scope.newTickets = newTickets;
  if($scope.curTickets != $scope.newTickets){
    $scope.tickets = $scope.newTickets;
    console.log('newtickets!');
  } else {
    console.log('no newtickets');
  }
 });
},90000);
 
     
    