I have a showUpdate boolean in my Profile parent component, which I'm passing to my update-profile child component, whenever I toggle it back from the update-profile the Profile component doesn't show the button again.
This is from my Profile Parent Component
<button
v-if="!showUpdate"
v-on:click="showUpdate = !showUpdate"
class="btn btn-warning m-3"
>
<span class="cil-contrast btn-icon mr-2"></span> Primary
</button>
data() {
return {
showUpdate: false,
};
},
This is from my Update-Profile Component
<button
v-on:click="showUpdate = !showUpdate"
class="btn btn-warning m-3"
>
<span class="cil-contrast btn-icon mr-2"></span> Cancel
</button>
props: ["company", "showUpdate"],
Whenever I click the button on my Update-Profile the button on my Profile doesen't render again and not showing.