Possible solution
With Vue you can conditionally set an attribute like the following:
<ul class="country-columns">
<li class="control" v-for="country in countries">
<label class="checkbox">
<input type="checkbox" v-model="country.id" v-bind:value="permission.id" v-bind:checked="user.countries.includes(country.id)">
<span>{{ country.name }}</span>
</label>
</li>
</ul>
From the docs:
Mustaches cannot be used inside HTML attributes, instead use a v-bind directive:
<div v-bind:id="dynamicId"></div>
It also works for boolean attributes - the attribute will be removed if the condition evaluates to a falsy value:
<button v-bind:disabled="someDynamicCondition">Button</button>
I hope this helps