-
-
Save wataruoguchi/b1099b7d7a1c57db2cb608497d29f63e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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