Skimmed Datepicker Component For Angular

Author: tomblachut
Publish Date:
Official Page: Go to website
Views Total: 929
License: MIT

Description:

A fancy, simple, touch-enabled, blazing fast date picker component for Angular 4+.

Installation:

# NPM
$ npm install skimmed-datepicker --save

Usage:

In your template.

<input id="date" type="text" class="form-control mb-3"
       [ngModel]="date | date:'yyyy-MM-dd'" (ngModelChange)="date = $event">
<skm-calendar [(date)]="date"></skm-calendar>

Import in the module.

@NgModule({
  declarations: [
    AppComponent,
    CalendarComponent,
  ],
  imports: [
    BrowserModule,
    FormsModule,
  ],
  providers: [
    {provide: LOCALE_ID, useValue: 'en-US'},
  ],
  bootstrap: [AppComponent],
})
export class AppModule {
}

Preview:

Skimmed Datepicker Component For Angular

 

Leave a Reply