October 2018
Intermediate to advanced
590 pages
15h 5m
English
As mentioned earlier, the implementation of the submitForm() method depends on registrationService, which is not our focus right now; we will simply create a blank implementation of the service. The following is how frontend/src/services/registration/index.js looks:
export default { register (detail) { return new Promise((resolve, reject) => { resolve() }) }}
As you can see, it is just a placeholder, which is already good enough for us to implement the submitForm() method and get those tests to pass.
The following is the change we make to RegisterPage.vue:
<template> ... <form @submit.prevent="submit"> <div v-show="errorMessage" class="alert alert-danger failed">{{ errorMessage }}</div> ... </form> ...Read now
Unlock full access