Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// src/views/Home.vue
<div class="container">
<div v-if="isLoggedIn" class="card">
<div class="card-content">
<div class="content">
Welcome back <strong>{{ }}!</strong>
<div v-else class="notification is-danger">
You're not logged in!
export default {
name: 'Home',
data() {
return {
user: {},
computed: {
isLoggedIn: () => false,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment