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
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.js"></script> | |
</head> | |
<body> | |
<div id="app"> | |
<my-button-counter></my-button-counter> | |
</div> | |
</body> | |
<script> |
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
<template> | |
<my-button-counter></my-button-counter> | |
</template> | |
<script> | |
import MyButtonCounter from "./MyButtonCounter.vue"; | |
export default { | |
components: { | |
MyButtonCounter |
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
<template> | |
<my-button-counter v-on:clicked="updateClickedNum"></my-button-counter> | |
</template> | |
<script> | |
import MyButtonCounter from "./MyButtonCounter.vue"; | |
export default { | |
data() { | |
return { | |
clicked_num: 0 |
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
<template> | |
<div> | |
<the-navigation-bar></the-navigation-bar> | |
<router-view> | |
// Your views are rendered here :) | |
</router-view> | |
</div> | |
</template> | |
<script> |
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
<template> | |
<menu> | |
<menu-item>Hello World</menu-item> // other markup can be nested inside MenuItem | |
<menu-item>Hello World</menu-item> | |
</menu> | |
</template> | |
<script> | |
import Menu from "./Menu.vue"; | |
import MenuItem from "./MenuItem.vue"; |
OlderNewer