Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <div class="test">
- <dm-input name="test" v-model="test" />
- <button @click="setTest('test lol')">Update input value</button>
- </div>
- </template>
- <script>
- export default {
- name: "InputTest",
- data: () => ({
- test: null
- }),
- methods: {
- setTest(value) {
- this.test = value
- }
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement