ngk-date-picker
v0.2.7
Published
Angular 2+ based datepicker package
Downloads
6
Maintainers
Readme
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
- Angular (tested with 6.0.0)
- Typescript
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
- Clone this repository
git clone https://github.com/kvirrik/ng-date-picker.git
- Install packages
npm install
- Run Demo
npm start
Licence
MIT