Use ngUSDResource instead of $resource.