Skip to content

Instantly share code, notes, and snippets.

Created October 12, 2019 10:12
What would you like to do?
Simple Single Page Application (SPA) using Vue.js
<script src=""></script>
<h3>Uma Simples SPA</h3>
<div id="ui">
Temperatura: {{ temperatura }}
<p><button v-on:click="incTemperatura">Incrementa</button></p>
var model = new Vue({
el: '#ui',
data: {
temperatura: 30
methods: {
incTemperatura: function () {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment