ngmat-timepicker

Simple lightwieght timepicker for Angular Material 7.2+

Usage no npm install needed!

<script type="module">
  import ngmatTimepicker from 'https://cdn.skypack.dev/ngmat-timepicker';
</script>

README

Timepicker

Simple lightwieght timepicker for Angular Material 7.2+

Prerequisites

  1. Angular 7.2+
  2. Angular Material 7.3+

Demo

https://azatprog.dev/demos/timepicker

Git Repo

https://github.com/azatprog/simple-angular-material-timepicker

Getting started

Install timepicker through npm:

npm install --save ngmat-timepicker

Next import the timepicker module into your app's module:

import { NgModule } from '@angular/core';
import { TimepickerModule } from 'ngmat-timepicker';

@NgModule({
  imports: [TimepickerModule]
})
export class AppModule {}

Finally connect the timepicker to an input via a template property:

<ngmat-timepicker [(time)]="myTime"></ngmat-timepicker>

In your component.ts

export class AppComponent {
    myTime='14:30';
}

License

MIT