Skip to content

Instantly share code, notes, and snippets.

@ejirocodes
Created August 19, 2021 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ejirocodes/90dfb4e4083957da5cc9cc29e429d028 to your computer and use it in GitHub Desktop.
Save ejirocodes/90dfb4e4083957da5cc9cc29e429d028 to your computer and use it in GitHub Desktop.
<template>
<div>
<date-picker v-model="date" />
</div>
</template>
<script>
export default {
data() {
return {
date: new Date(),
};
},
};
</script>
plugins: ["~/plugins/datepicker.client.js"],
import Vue from "vue";
import DatePicker from "vue2-datepicker";
import "vue2-datepicker/index.css";
Vue.component("date-picker", DatePicker);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment