/
Search
๐Ÿ“–

Components are reusable Vue instances with a name: in this case, <button-counter>. We can use this component as a custom element inside a root Vue instance created with new Vue

์ถœ์ฒ˜
์ˆ˜์ง‘์‹œ๊ฐ„
2022/08/25 01:56
์—ฐ๊ฒฐ์™„๋ฃŒ
1 more property
// Define a new component called button-counter Vue.component('button-counter', { data: function () { return { count: 0 } }, template: '<button v-on:click="count++">You clicked me {{ count }} times.</button>' })
JavaScript
๋ณต์‚ฌ