Created
March 16, 2020 20:18
-
-
Save Vanawy/8e69c8275afa75d75b7bd927723cdc69 to your computer and use it in GitHub Desktop.
TicTacToe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<game></game> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.component("game", { | |
data: function(){ | |
return { | |
state | |
}; | |
}, | |
template: ` | |
<div> | |
<p></p> | |
</div> | |
` | |
}); | |
let app = new Vue({ | |
el: "#app", | |
data: { | |
name: "Vanawy", | |
}, | |
computed: { | |
greetings: function(){ | |
return `Hello, ${this.name}!` | |
} | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment