[Vuejs]-Can not render value with Vuejs, but console log work fine

0👍

It is not the template, but here you go, I have tried with static data.

Here is the template:

<div id="devApp" class="panel panel-default">
<div class="panel-heading">
    <h4 class="panel-title">Location amount per city</h4>
</div>

<ul class="list-group location-list">
    <li class="list-group-item" v-for="item in citiesCount">@{{item.city}}<span class="badge">@{{item.amount}}</span></li>
</ul>

0👍

the @ @{{ data }} sign is only needed in laravel blade.

and yes you just need to loop through your data to display everyone of it

here’s a working sample.

https://jsfiddle.net/khenxi/djcner34/

Leave a comment