我刚刚制作了我的第一个Vue.js
应用程序,非常棒.我遇到的唯一问题与慢速连接上的绑定值有关.
例如,在my template
中,我有以下代码:
<div v-for="event in events">
<div class="start_time">
{{ event.start_time_formatted }}
</div>
<div class="icon_placeholder">
<img v-bind:src="event.icon" alt="Sport Image" />
</div>
<div class="event_title">
<a v-bind:href="event.url">
{{ event.title }}
</a>
</div>
<div class="button_placeholder">
<a v-bind:href="event.url" class="btn btn-filled">
Watch
</a>
</div>
</div>
但问题是,在我的网站的所有assets资源 加载之前,我都会得到这个结果:
例如,在AngularJS
示例中,可以使用指令绑定值,并防止显示括号.
我怎样才能在Vue.js
分钟内达到这个效果?