November 2017
Beginner to intermediate
398 pages
8h 42m
English
The id prop will be the ID of the ticket for which we will fetch the details. The server provides a dynamic route in the form of /ticket/<id>, with <id> being the ID of the ticket.
It would be nice to be able to use our RemoteData mixin, but it currently lacks support for dynamic paths! What we could do is to pass a function instead of a plain string as the values of the mixin's parameter:
created () { for (const key in resources) { let url = resources[key] // If the value is a function ...Read now
Unlock full access