Skip to content

Instantly share code, notes, and snippets.

@wataruoguchi
Last active July 2, 2019 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wataruoguchi/b1099b7d7a1c57db2cb608497d29f63e to your computer and use it in GitHub Desktop.
Save wataruoguchi/b1099b7d7a1c57db2cb608497d29f63e to your computer and use it in GitHub Desktop.
// src/views/Home.vue
<template>
<div class="home">
<v-btn @click="signOut">Sign Out</v-btn>
<img alt="Vue logo" src="../assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
</div>
</template>
<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
import {signOut} from '@/utils/auth.js'
export default {
name: 'home',
components: {
HelloWorld
},
methods: {
signOut() {
signOut().then((data) => console.log('DONE', data)).catch((err) => console.log('SIGN OUT ERR', err));
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment