Nuxt/examples/plugins-vendor/pages/index.vue
pooya parsa e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30

43 lines
636 B
Vue

<template>
<div class="container">
<p>
<button @click="showLoginError">
Notif me!
</button>
</p>
<p>
Home - <NuxtLink to="/about">
About
</NuxtLink>
</p>
</div>
</template>
<script>
let miniToastr
if (process.client) {
miniToastr = require('mini-toastr').default
}
export default {
mounted () {
miniToastr.init()
},
notifications: {
showLoginError: {
title: 'Welcome!',
message: 'Hello from nuxt.js',
type: 'info'
}
}
}
</script>
<style>
.container {
text-align: center;
padding-top: 100px;
font-family: sans-serif;
}
</style>