A
A
Andrew2020-02-18 11:46:16
css
Andrew, 2020-02-18 11:46:16

Asynchronous meta in nuxt?

Nuxt uses vue-meta to set meta pages. In general, it works fine even if you pass a reactive value there.

But ssr needs the headers to be set during server-side generation, inside the asyncData method.
Until I figured out how to do it.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
0
0xD34F, 2019-06-17
@anton99zel

.images_box-model-spec {
  order: 1;
}

.itemsnew-list-item-wrapper {
  order: 2;
}

A
Andrew, 2019-06-17
@Eniluck

https://webref.ru/css/flex-direction
flex-direction: row-reverse

N
nvdfxx, 2020-02-18
@AndrewRusinas

asyncData: () => ({
    title: "sunt aut facere repellat provident occaecati excepturi optio reprehenderit"
}),
head() {
    return {
        title: this.title // title ставится как нужно
    }
}

no problems, checked in the sandbox

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question