mirror of https://github.com/sveltejs/svelte
16 lines
308 B
16 lines
308 B
<select bind:value="selected" on:change="updateLastChangedTo(selected)">
|
|
{#each options as option}
|
|
<option value="{option.id}">{option.id}</option>
|
|
{/each}
|
|
</select>
|
|
|
|
<script>
|
|
export default {
|
|
methods: {
|
|
updateLastChangedTo(result) {
|
|
this.set({ lastChangedTo: result });
|
|
}
|
|
}
|
|
};
|
|
</script>
|