0π
Are you sure that your AuthenticationService.register
is actually returning a promise correctly?
The await expression causes
async
function execution to pause until aPromise
is fulfilled, that is resolved or rejected, and to resume execution of theasync
function after fulfillment. When resumed, the value of theawait
expression is that of the fulfilledPromise
.
For more info see MDN web docs β await
0π
once I commented out this line in Registration.vue
everything worked.
res.status(200).send('registration successful');
not sure why..
- [Vuejs]-How to make it visible in github.io for a vue-cli project
- [Vuejs]-In Vue.js, how do I enable buttons in a v-for loop
Source:stackexchange.com