Nuxt.js: It's impossible to pass props from layout?

Created on 19 Oct 2017  路  5Comments  路  Source: nuxt/nuxt.js

I am trying to pass props from default.vue layout to <nuxt/>, so they could be available in Page Component. Is it possible?

This question is available on Nuxt.js community (#c1696)

Most helpful comment

You should use the store for this.

All 5 comments

You should use the store for this.

@christophwolff it is overkill in my case. I have only few pages and components on small landing site.

I refactor some stuff...So I guess it's more logic to store such data in Page components if I don't want to use Vuex.

Last question - if I want to pass data from one Page Component to another Page component, then the only option is store?

@iamdubx yes the store is the only solution in your case.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shyamchandranmec picture shyamchandranmec  路  3Comments

uptownhr picture uptownhr  路  3Comments

pehbehbeh picture pehbehbeh  路  3Comments

jaredreich picture jaredreich  路  3Comments

mikekidder picture mikekidder  路  3Comments