2👍
✅
Yes, you can use the v-bind
directive, or :
for short, also no mustache for attributes in Vue 2:
<div :id="this.$route.query.data" class="col-md-12>{{data}}</div>
Source:stackexchange.com