For example I have something like this:
{
status: {
text: "New",
date: "22.06.12"
}
}
Factory to interact with RESTfull lookes like
(function(){
'use strict';
angular.module('app')
.factory('Orders', Orders);
Orders.$inject = ["$resource"];
function Orders($resource){
return $resource('Orders/:id', {id: '@id'});
};
})();
And I want to find all records with status.text = "New"
$scope.orders = Orders.query({status:{text:"Tru"}});
not work at all
$scope.orders = Orders.query({status[text]:"Tru"}});
return all records....
How to put object property to query?