Hi i'm starting to use vue and javascript from some day and i need to do an example of form for my "exame". I would like to save locally the data entered by users and use this data and enter them on another page. Do I have to use a database? (user enter "name" and in the next page "welcome (name)"). This is part of my code:
<label>Nome:</label>
<input type="text" required v-model="nome">
<div class="submit">
<button>Iscriviti!</button>
export default {
data() {
return {
nome: '',
}
},
methods: {
inviaForm() {
console.log('form inviato')
}
}
Sorry for my english, i'm so bad