<template>
<div>
{{getCompPrice | priceFilter}}
</div>
</template>
<script>
export default {
data(){
return{
price : 3000,
}
},
filters:{
priceFilter:(value)=>value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","),
},
computed:{
getCompPrice(){
return this.price * 10;
}
}
}
</script>