[Vuejs]-Dynamic Div Id Get From Route

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>

Leave a comment