Backendless v3 and Promises
I'm having some problems understanding how I should handle Backendless in JS (Angular 4). I am running Backendless v3 for legacy reasons. If I explicitly set Backendless.enablePromises(); I do not seem to get this working, meaning that even a simple statement as: Backendless.UserService.register(user).then(userRegistered).catch(gotError);
gives me an error ('then' cannot be applied to object of type User). Any ideas why this is the case? I must be missing something simple.
If I disable promises, then I can use Async calls (for example Backendless.UserService.getCurrentUser(new Backendless.Async(success));), these work only if I do not call Backendless.enablePromises();, otherwise the async calls do not work either.
However, I'd like to use promises, any help is appreciated, thank you.