Inside my Laravel-Vue app this
Works:
@include('header')
<div id="app">
@yield('content')
</div>
@include('footer')
But putting @includes inside #app, throws warning "Property "open" was accessed during render but is not defined on instance."
Not working:
<div id="app">
@include('header')
@yield('content')
@include('footer')
</div>
header.blade.php
<header x-data="{ open: false }">
<button @click="open = !open"> open </button>
<nav :class="{'hidden' : !open}" x-cloak></nav>
</header>