0.0.101 • Published 4 years ago
@joyingsoft/ng-timeago v0.0.101
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