2👍
Apparently IE causes problems with templating style attributes – see this closed issue:
https://github.com/yyx990803/vue/issues/651
It’s recommended to use v-style
instead:
http://vuejs.org/api/directives.html#v-style
Something like this:
<div class="image-tile">
<div class="preview" v-style="background-image: 'url(' + tent.files[fileId].path + '/thumb/' + tent.files[fileId].name + ')'>
</div>
<div class="info">
@{{tent.files[fileId].name}}<br/>
@{{tent.files[fileId].width}} x @{{tent.files[fileId].height}}<br/>
@{{(tent.files[fileId].size / 1024).toFixed(2)}}KB
</div>
- [Vuejs]-Can't load images from assets folder in nested components (Vue.js 2.0 / Webpack)
- [Vuejs]-Vuejs console logs appear then disappears in chrome
Source:stackexchange.com