Call next function after previous one has been completed. (Angular)
function1(message){
return new Promise((resolve, reject) => {
console.log(message);
resolve('succsess');
});
this.function1(message).then(data=>{
this.response = data;
console.log(this.response);
});
Comments
Post a Comment