2
Here’s what I wanna do:
Pessoa Click on Botao Contratar
that is green with Bootstrap It changes the class of the button.
In short: Clicked the button he becomes another.
What method and event should I do here... I understand about v-bind
v-on
I know that, but I want to know which event should have to exchange template type change.Templateto(enviar)
something like that...
with VUEJS please:
<div id="app">
<botao-contratar></botao-contratar>
</div>
<template id="contratar">
<a href="#" class="btn btn-success">Contratar</a>
</template>
<template id="ativar">
<a href="#" class="btn btn-info">Ativar</a>
</template>
Part of the VUEJS:
Vue.component('botao-contratar',{
template: '#contratar',
});
Vue.component('botao-ativar',{
template: '#ativar',
});
var app = new Vue({
el: "#app",
data: {
titulo: "vuejs",
}
});