Best way to use Skeleton

  • Hi all,
    I would like to integrate Skeleton into my app.

    I load my data from a method (axios consumes an api) called in the mounted.
    I can load a “skeleton” data and update my DOM from this value, but i dont know if it’s the best way 🙂

            method: 'GET',
            url: process.env.API_URL + '/method/' + + '/' +,
            headers: { 'Content-Type': 'application/json' }
            .then(response => {
              this.poste =
             this.skeleton = false
            .catch((e) => {
              this.$q.notify({ message: e, type: 'negative' })
            <q-item-section avatar>
              <q-skeleton type="QAvatar" animation="fade" v-if="skeleton" />
              <q-avatar v-else><img :src="poste.avatar"><q-avatar/>

  • @Shoooryuken looks fine to me.

Log in to reply