title: geting json inventory id using resource
body: <p>i cant get and ID from my json api, how can i do that? I am doing like <code>$scope.info.id</code> in my delete function but id doesnt work like that.</p>
  
  <p>Here is my delete function</p>
  
  <pre><code>app.controller('InventoryCtrl', function($scope, $http,  Inventory, $location) {    
      //getting the objects from Inventory
          $scope.info = Inventory.query();
  
       $scope.deleteInv = function () {
          Inventory.drop({id: $scope.info.id}, function() {
              $location.path('/');
          });
      };
     });
  </code></pre>
  
  <p>here is my factory </p>
  
  <pre><code>app.factory('Inventory', function($resource, $http) {
  return $resource('http://localhost/api/v1/inventory/:id', {id: "@id"},
      {
          drop: {
              method: 'DELETE',
              params: {id: "@id"}
          }
               }
       );
   });
  </code></pre>
  
  <p>And here is my api </p>
  
  <pre><code>    {
  meta: {
  limit: 20,
  next: null,
  offset: 0,
  previous: null,
  total_count: 3
  },
  objects: [
  {
  category: {},
  count: 1,
  created: "2014-02-28T11:54:02.831409",
  description: "dasdasdasdsa",
  id: 20,
  location: "asd",
  name: "adas11",
  resource_uri: "/api/v1/inventory/20",
  status: "sad"
  },
  {
  category: {},
  count: 1,
  created: "2014-02-28T11:54:03.708003",
  description: "dasdasdasdsa",
  id: 21,
  location: "asd",
  name: "adas11",
  resource_uri: "/api/v1/inventory/21",
  status: "sad"
  },
  ]
  }
  </code></pre>