Skip to content

Instantly share code, notes, and snippets.

View victorlucss's full-sized avatar
working from anywhere

Victor Lucas victorlucss

working from anywhere
View GitHub Profile
package br.com.s3bank.recarga.views;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;
import android.widget.TextView;
Vue.component('titulo', {
template: '<h1>Contador de cliques</h1>'
});
<script src="https://unpkg.com/vue"></script>
<div id="app">
<titulo></titulo>
<h2>{{ count }}</h2>
<button v-on:click="incrementar">Adicionar um</button>
</div>
<script src="https://unpkg.com/vue"></script>
<div id="app">
<h1>{{ contar }}</h1>
<button v-on:click="incrementar()">Adicionar um</button>
</div>
<script>
new Vue({
el: '#app',
<script src="https://unpkg.com/vue"></script>
<div id="app">
<h1>{{ count }}</h1>
<button v-on:click="increment()">Add one</button>
</div>
<script>
new Vue({