title: How to get record count from $resource returned object ?
body: <p>I am using angular-resource to get my data from the server, and here is the code </p>
  
  <pre><code>var app = angular.module('app',[...]);
  
      app.factory('propertiesService', ['$resource', 'CONSTANTS',  function($resource, CONSTANTS) {
          var _default_url = CONSTANTS.HTTP.API_URL+"/properties/get";
          return $resource(_default_url);
      }]);
  </code></pre>
  
  <p>Then I get it in my controller </p>
  
  <pre><code>app.controller('propertiesSearchController', ['$scope' ,'$rootScope','propertiesService', function($scope, $rootScope, propertiesService) {
          $scope.properties = propertiesService.get();
  
      }]);
  </code></pre>
  
  <p>but now in my views, I cant get the length to know how many records it returned</p>
  
  <pre><code>e.g {{ properties.length}}
  </code></pre>
  
  <p>However I am able to use ng-repeat to get the data in the view.</p>