mat-timepicker-hi

mat-timepicker-hi is an easy library with timepicker. Fully wrote with TypeScript. This library is based on Angular Material.

Usage no npm install needed!

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

README

mat-timepicker-hi is an easy library with timepicker. Fully wrote with TypeScript. This library is based on Angular Material.

Screenshot_1

Getting started

npm install --save mat-timepicker-hi

Setup

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { MatTimepickerModule, } from 'mat-timepicker'
import { AppComponent } from './app.component';

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

Using the component

<mat-timepicker [(time)]="initTime"></mat-timepicker>
import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {

  initTime = '11:57';
  
}

License

MIT

Author

Hasan Ibishi