0.0.2 • Published 5 years ago

material-timestamp-adapter v0.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

Material Timestamp Adapter

This is a firestore Timestamp adapter for Angular Materials date picker.

By using this adapter, you can directly display dates from firestore in the material date picker.

Use like this:

1) npm i material-timestamp-adapter

2) Then add the module to imports section of your NgModule:

import { MaterialTimestampAdapterModule } from 'material-timestamp-adapter';

@NgModule({
declarations: [AppComponent],
imports: [MaterialTimestampAdapterModule],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }

TODO

1) Refactor luxon out. Currently the library uses Luxon internally to create the adapter, and thus has Luxon as peer dependency. Would probably be better with pure JS date. 2) Create hosted demo page

Run locally

1) Pull the library 2) npm i 3) ng build material-timestamp-adapter 4) ng s 5) Open your browser on http://localhost:4200

0.0.2

5 years ago

0.0.1

5 years ago