Nuxt/examples/plugins-vendor/pages/index.vue
2017-03-01 17:54:44 +01:00

35 lines
575 B
Vue

<template>
<div class="container">
<p><button @click="showLoginError">Notif me!</button></p>
<p>Home - <nuxt-link to="/about">About</nuxt-link></p>
</div>
</template>
<script>
let miniToastr
if (process.browser) {
miniToastr = require('mini-toastr')
}
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>