mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
sample interactivity.
This commit is contained in:
parent
ec1e0c63f4
commit
2c5ec6545a
@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>Hello world, Neko.</h1>
|
||||
<button @click="visible = !visible">Toggle</button>
|
||||
<div v-if="visible">Is this visible?</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -10,5 +12,7 @@
|
||||
@Component({
|
||||
name: 'neko',
|
||||
})
|
||||
export default class extends Vue {}
|
||||
export default class extends Vue {
|
||||
public visible: boolean = false
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user