npm.io
0.2.7 • Published 7 years ago

ngk-date-picker

Licence
Version
0.2.7
Deps
1
Size
229 kB
Vulns
0
Weekly
0

Angular Date-Picker : ngk-date-picker

Angular 2+ based datepicker package

Demo

View datepicker demo in action at https://kvirrik.github.io/ng-date-picker/

Dependencies

Instalation

After installing the above dependencies, install ngk-date-picker via:

npm install --save ngk-date-picker

Once installed you need to import our main module:

import { DatePickerModule } from 'ngk-date-picker';

The only remaining part is to list the imported module in your application module.

import { DatePickerModule } from 'ngk-date-picker';

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

Example

Template-Driven Forms
  <ngk-date-picker [(ngModel)]="date"></ngk-date-picker>
Reactive Forms
  <ngk-date-picker formControlName="date"></ngk-date-picker>

Additional Attributes

Name Type Default Description
dateFormat string YYYY-MM-DD change date format
(change) event handles emitted change

Run Included Demo

  1. Clone this repository
git clone https://github.com/kvirrik/ng-date-picker.git
  1. Install packages
npm install
  1. Run Demo
npm start

Licence

MIT

Keywords