In your SignIn and Join views do the following:
- Bind refs to each of the
<input>
elements in such a ways that when the user enters text in the<input>
fields the refs are automatically updated by Vue. - Utilize the values in the refs when validating the user input and when setting up fetch’s options objects.
- Remove unnecessary code.
Inside your Main view create a clickable item in the navigation bar that produces a drop down menu. The drop down menu should display the word Delete.
When the user presses Delete the app should:
- Confirm that the user wants to delete the account.
- If confirmed, send a request to the API server requesting the account be deleted (the protocol is shown below).
- If the response contains a 200 status code, remove the user’s data from localStorage and redirect the user to the Home view.
When completed, push your code to GitHub, hug a friend, and verify your code was deployed to Digital Ocean.