My question is how to execute 3 functions(declared in service) in order:
function1();
function2();
function3();
All functions contain http commands(e.g. put or get). that's why if I use code above function 3 will be executed before function 2. I tried to chain functions with then but that didn't help either.