1.0.2 • Published 3 years ago

ng-time-from-pipe v1.0.2

Weekly downloads
20
License
MIT
Repository
github
Last release
3 years ago

ng-time-from-pipe

npm npm GitHub issues NPM Build Status

A simple pipe to display the time passed from the input date. Also includes a <time-from> component with hover switching effect (switch between time from and raw date format).

Updates as time passes.

Install

npm install ng-time-from-pipe

Usage

You can import in the @NgModule.

import { TimeFromPipeModule } from "ng-time-from-pipe";

then add to imports array.

@NgModule( { 
  declarations: [ ... ],
  imports: [ ..., TimeFromPipeModule, ... ]
})

you can choose between the time from pipe and the time from component (time from component has hover effect).

<time-from [value]="date"></time-from>
AttributeType
valueInput date toe be formated
<span>{{ date | timeFrom  }}</span>
AttributeType
valueAny. Date to be formated
isOnBoolean. Turns on and off pipe
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

4 years ago

0.0.44

4 years ago

0.0.45

4 years ago

0.0.41

4 years ago

0.0.42

4 years ago

0.0.3

4 years ago

0.0.43

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago