Home

Issue: 180

conditional logic or props to layouts?

[issue link]

First I really have to say I love what you do with the framework amazing just started yesterday and creating my first project with nuxt.js already!

I was wondering what will be the best approach on the following? this is my default layout:

<template>
  <div>
    <nav-bar />
    <nuxt/>
    <my-footer/>
  </div>
</template>

I want to reuse the layout but to add additional logic or props based on routes so it works really well for / but when ever I go to /search I want an extra prop for <nav-bar /> something like that:

<template>
  <div>
    <nav-bar :logo="true" />
    <nuxt/>
    <my-footer/>
  </div>
</template>

Because the routes are hidden/generated I’m not really sure what the best way to approach this without duplicating the layout?

Thanks a lot

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