Is it possible to call one first service and another?
I have two services, below are the details:
dataservice.getCPUUtilization(model.dbName).then(function (data) {
model.cpuUtilizationChart = data;
model.cpuPercentage = model.cpuUtilizationChart[0].combined;
console.log ("******** CPU Utilization Chart components are ******* :" + model.cpuUtilizationChart);
console.log ("******** CPU Percentage is ******* :" + model.cpuPercentage);
});
dataservice.setCPUPercentage(model.setcpuPercentage);
After the getCPUUtilization service I need to call:
But it is calling setCPUPercentage first and the getCPUUtilization?