I have my component:
<template>
<div class="snack-visible" :class="{'snack-danger':!success, 'snack-success':success }">
<div>
<strong>{{message}}</strong>
</div>
</div>
</template>
<script>
export default {
data(){
return{
showing: false,
message:"",
success:false
}
}
//here other methods and created();
}
So i have defined variables in data, but it return these errors:
app.js:11624 [Vue warn]: Property or method "success" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.
found in
---> at /var/www/html/carrozzeria/resources/assets/js/components/Snackbar.vue
{{message}}
with{{success}}
? – kevguymessage
andshowing
work?? – kevguy</script>
" - does that mean your problem no longer exists? – Sᴀᴍ Onᴇᴌᴀ