Yeah, this link helped a bit, i got it working now.
return new Promise(function(resolve, reject) {
resolve('some sucess stuff');
reject('some fail stuff');
}
Thanks for the help
Yeah, this link helped a bit, i got it working now.
return new Promise(function(resolve, reject) {
resolve('some sucess stuff');
reject('some fail stuff');
}
Thanks for the help