angular2-moment

  • Version 1.9.0
  • Published
  • 97.3 kB
  • 1 dependency
  • MIT license

Install

npm i angular2-moment
yarn add angular2-moment
pnpm add angular2-moment

Overview

Moment.JS pipes for Angular2 (timeago and more)

Index

Classes

class AddPipe

class AddPipe implements PipeTransform {}

    method transform

    transform: (
    value: any,
    amount: moment.DurationInputArg1,
    unit?: moment.DurationInputArg2
    ) => any;

      class CalendarPipe

      class CalendarPipe implements PipeTransform, OnDestroy {}

        constructor

        constructor(cdRef: ChangeDetectorRef, ngZone: NgZone);

          method ngOnDestroy

          ngOnDestroy: () => void;

            method transform

            transform: (value: Date | moment.Moment, ...args: any[]) => any;

              class DateFormatPipe

              class DateFormatPipe implements PipeTransform {}

                method transform

                transform: (
                value: Date | moment.Moment | string | number,
                ...args: any[]
                ) => string;

                  class DifferencePipe

                  class DifferencePipe implements PipeTransform {}

                    method transform

                    transform: (
                    value: Date | moment.Moment,
                    otherValue: Date | moment.Moment,
                    unit?: moment.unitOfTime.Diff,
                    precision?: boolean
                    ) => number;

                      class DurationPipe

                      class DurationPipe implements PipeTransform {}

                        method transform

                        transform: (value: any, ...args: string[]) => string;

                          class FromUnixPipe

                          class FromUnixPipe implements PipeTransform {}

                            method transform

                            transform: (value: any, ...args: string[]) => any;

                              class FromUtcPipe

                              class FromUtcPipe implements PipeTransform {}

                                method transform

                                transform: (value: any, ...args: string[]) => any;

                                  class LocalePipe

                                  class LocalePipe implements PipeTransform {}

                                    method transform

                                    transform: (value: string, locale: string) => moment.Moment;

                                      class LocalTimePipe

                                      class LocalTimePipe implements PipeTransform {}

                                        method transform

                                        transform: (value: Date | moment.Moment | string | number) => moment.Moment;

                                          class MomentModule

                                          class MomentModule {}

                                            class ParsePipe

                                            class ParsePipe implements PipeTransform {}

                                              method transform

                                              transform: (value: string, format: string) => moment.Moment;

                                                class SubtractPipe

                                                class SubtractPipe implements PipeTransform {}

                                                  method transform

                                                  transform: (
                                                  value: any,
                                                  amount: moment.DurationInputArg1,
                                                  unit?: moment.DurationInputArg2
                                                  ) => any;

                                                    class TimeAgoPipe

                                                    class TimeAgoPipe implements PipeTransform, OnDestroy {}

                                                      constructor

                                                      constructor(cdRef: ChangeDetectorRef, ngZone: NgZone);

                                                        method ngOnDestroy

                                                        ngOnDestroy: () => void;

                                                          method transform

                                                          transform: (value: Date | moment.Moment, omitSuffix?: boolean) => string;

                                                            class UtcPipe

                                                            class UtcPipe implements PipeTransform {}

                                                              method transform

                                                              transform: (value: Date | moment.Moment | string | number) => moment.Moment;

                                                                Package Files (15)

                                                                Dependencies (1)

                                                                Dev Dependencies (18)

                                                                Peer Dependencies (1)

                                                                Badge

                                                                To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                                You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/angular2-moment.

                                                                • Markdown
                                                                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/angular2-moment)
                                                                • HTML
                                                                  <a href="https://www.jsdocs.io/package/angular2-moment"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>