Hi I am consuming the data of a web services with JSON and the problem is that I am doing the same request twice because id_servicio contains two numbers in an array (38 and 39) and these return me different data. (they are different branches) for now I'm sending id_servicio in the following way:
petition 1:
$scope.DateNormal = Ticket.getAll({
id_usuario: LoginData.getData().id_usuario,
token: LoginData.getData().token,
id_sucursal: LoginData.getData().id_sucursal,
id_servicio: LoginData.getData().id_servicio.split(",")[0],
petition 2:
$scope.DatePriority = Ticket.getAll({
id_usuario: LoginData.getData().id_usuario,
token: LoginData.getData().token,
id_sucursal: LoginData.getData().id_sucursal,
id_servicio: LoginData.getData().id_servicio.split(",")[1],
My question is: can I send both of one? How?.
Data:
- Respond with data in JSON
- LoginData.getdata () corresponds to other data received in JSON from a web services and saved in this variable.
Greetings.