I\'m trying to figure out the best way to write a model that relates to other models, such as an Order that has 1 or more OrderItems.
Ho
Before Andy's answer, I was workarounding it in Controllers. To do this, just add:
function OrderCtrl($scope, $routeParams, $resource, Order, OrderItem) { $scope.order = Order.get({ orderId : $routeParams.orderId }, function(order) { doOrderItemStuff(); }); }