vue-greetings

0.1.8 • Public • Published

Vue Greetings

A vue component that returns greeting based on day, time and season. Ideal for welcome messages in dashboard and user profile

Installation

  • Vue CLI
npm install vue-greetings
  • script tag
<script src="https://unpkg.com/vue-greetings@0.1.7/dist/vue-greetings.min.js"></script>

Basic Use

  • Register as a global component
import Vue from "vue";
import VueGreeting from "VueGreeting";
Vue.component("vue-greeting", VueGreeting);

then in vue components

<vue-greeting></vue-greeting>
  • Register as Local Component
<template>
  <div>
    <vue-greetings/>
  </div>
</template>

<script>
import VueGreetings from "vue-greetings"
export default {
  components:{
 VueGreetings
  }
}
</script>

Demo

See live demo

Readme

Keywords

none

Package Sidebar

Install

npm i vue-greetings

Weekly Downloads

0

Version

0.1.8

License

MIT

Unpacked Size

28.3 kB

Total Files

8

Last publish

Collaborators

  • opeolluwa