I modified the Wrapper Component Example from the VueJS documentation to include the AJAX datasource option. Here is my code.
However, I would like to set the ajax
url
property of my select2 component dynamically preferably like this,
<select2 :options="options" v-model="selected" url="dynamic-url-here">
<option disabled value="0">Select one</option>
</select2>
How would I do this?