ng-moment-pipes
v1.3.1
Published
Tested for angular16
Downloads
25
Readme
ng-moment-pipes
Tested for angular16
Installation
npm install ng-moment-pipes
How to use
imports
import { MomentPipesModule } from 'ng-moment-pipes';
@NgModule({
imports: [ MomentPipesModule ]
})
{{datetime | moment : 'YYYY-MM-DD HH:mm'}} <!-- datetime is unixtime like 1592345678 -->
{{datetime | momentUnix : 'YYYY-MM-DD HH:mm'}}<!-- datetime is normal like 1592345678 -->
{{datetime | momentLocal : 'YYYY-MM-DD HH:mm'}}<!-- datetime is normal like 1592345678 -->
{{msg.created_at | momentRelative}}<!--out put will be a hour ago like that -->