0👍
likes
{{ totalPrice }}
in Test2.vue , right?
0👍
Try sending your value through props
<Test2 :totalPrice="totalValue"></Test2>
and then use the props in the Test2 Component
export default {
props: {
totalPrice: {
type: Number,
}
}
}
and in the template
<template>
<h2>{{ totalPrice }}</h2>
</template>
- [Vuejs]-Getting custom component prop value in Vue app
- [Vuejs]-VueJs how to remove global error handler for testing with vue-test-utils
Source:stackexchange.com