ng-moment-pipes
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

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 -->

개발자 페이지

개발자페이지

Readme

Keywords

Package Sidebar

Install

npm i ng-moment-pipes

Weekly Downloads

2

Version

1.3.1

License

MIT

Unpacked Size

33.2 kB

Total Files

18

Last publish

Collaborators

  • pondol