Apr 01, 2023
Work with components
On this page
We use RVue, a version of VueJS with the same syntax and component structure. We added some internal functions to make it work better only.
To create a vue component, you can follow this example:
RVue.component('button-counter', {
data: function () {
return {
count: 0
}
},
template: `<button v-on:click="count++">You clicked me {{ count }} times.</button>`
})
Then in our template you can use:
<button-counter></button-counter>