Skip to content

Query data and fill a form with that data #190

Answered by DamianOsipiuk
ebisbe asked this question in Q&A
Discussion options

You must be logged in to vote

That depends on what UX you want to achieve and what form would you use (library or native elements).
Basically you have to options:

  • use v-if to check when data is available and display some fallback otherwise, like a spinner (similar to examples)
  • use computed to get data or fallback if data is empty, like empty object. Then you can just use computed value in the template without v-if

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@DamianOsipiuk
Comment options

@ebisbe
Comment options

@DamianOsipiuk
Comment options

@ebisbe
Comment options

@DamianOsipiuk
Comment options

Answer selected by ebisbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants