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:
-
npm i material-timestamp-adapter -
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 { }- 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.
- Create hosted demo page
- Pull the library
npm ing build material-timestamp-adapterng s- Open your browser on
http://localhost:4200