November 2017
Beginner to intermediate
398 pages
8h 42m
English
We will now implement the few actions the users will be able to do in the form:
<template slot="actions"> <router-link tag="button" :to="{name: 'tickets'}" class="secondary"> Go back </router-link> <button type="submit" :disabled="!valid"> Send ticket </button> </template>
async operation () { const result = await this.$fetch('tickets/new', { method: 'POST', body: JSON.stringify({ title: this.title, description: this.description, }), }) this.title = this.description = '' },
You can now ...
Read now
Unlock full access