vue-cs-timeago

2.0.1 • Public • Published

vue-cstimeago

vue js time ago

Installation

Get from npm / yarn:

npm i vue-cstimeago
yarn add vue-cstimeago

Usage

Use this inside your app:

<template>
	<cs-time-ago :datetime="new Date()">
		<template slot="prepend">
			<i fas-fa-time></i>
		</template>
	</cs-time-ago>
</template>

<script>
	import CsTimeAgo from "vue-cstimeago";

	export default {
		name: "app",
		components: {
			CsTimeAgo,
		},
	};
</script>

/vue-cs-timeago/

    Package Sidebar

    Install

    npm i vue-cs-timeago

    Weekly Downloads

    0

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    10.2 kB

    Total Files

    4

    Last publish

    Collaborators

    • codeslack