I am learning basic Vue.js, when I fetch data using PHP, why it can not put into the Vue object data array
data: {
message: "vue?",
homeView: true,
brandView: false,
flipF: true,
flipB: false,
prices:[
{coffee1:15},{coffee1:12},
<?php
while($row = mysqli_fetch_array($result)){
echo "{coffee1:".$row['price']."},";
}
?>
]
},
{{ item.coffee1}}
The php part could output {coffee1:20},{coffee1:18}, but they can not be shown on webpage