0.1.14 • Published 7 years ago
ngx-kor-time-ago v0.1.14
NgxTimeAgoKor
Angular time pipe kor version!
This project was generated with Angular CLI version 1.6.8.
Installation
npm install --save ngx-kor-time-ago
How to use
example
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { TimeAgoKorModule } from "ngx-kor-time-ago";
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
TimeAgoKorModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
.ts
export class AppComponent {
datetime = '2018-01-08 11:12:14';
}
.html
<div>{{datetime | timeAgoKor}}</div>