Jump to content

How send two objects, for method post angular


youngProgrammer

Recommended Posts

Hi guys,

I need help to send two objects to the 'post' method in the angular example:

    this.generateSerial = function ( items, deposit ) {        
                  return this.endpoint.subRoute( 'createSerialBox' ).post( items, {offline: '',  params: {'deposit': deposit}}).then(angular.bind( this, function ( response ) {
                return $q.when(response.data);
            })
        )
    }

item is a list and you deposit an object

That way I get the error 12616
 

Thanks,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...