@joyingsoft/ng-timeago
TypeScript icon, indicating that this package has built-in type declarations

0.0.101 • Public • Published

NgTimeago

Angular 9 Date, DateTime, and timeago

Currently only support Chinese language.

Usage

demo

Install

npm i @joyingsoft/ng-timeago

Import

import { NgTimeagoModule } from 'ng-timeago';
@NgModule({
      imports: [..., NgTimeagoModule]
      ...})

use

      .color-b {color:green;}
      ...
      <ng-timeago [date]="dt"
                  [styles]="'color-b'"></ng-timeago>
      <ng-timeago [date]="dt"
                  [show]="'date'"></ng-timeago>
      <ng-timeago [date]="dt"
                  [show]="'dateTime'"></ng-timeago>
      <ng-timeago [date]="dt"
                  [show]="'timeago'"></ng-timeago>

This library was generated with Angular CLI

Package Sidebar

Install

npm i @joyingsoft/ng-timeago

Weekly Downloads

2

Version

0.0.101

License

MIT

Unpacked Size

53.6 kB

Total Files

19

Last publish

Collaborators

  • junjunguo