0.0.2 • Published 6 years ago
sudatepicker v0.0.2
Datepicker
Installation
To install this library, run:
$ npm install sudatepicker --save
Consuming your library
Add the below line in app.module.ts
import { DatepickerModule, , SuPluginsDatepickerComponent } from 'sudatepicker/public_api';
And this import in app.module.ts
imports: [
BrowserModule,
DatepickerModule, <-- here
CommonModule,
FormsModule
],
And this line to entryComponents
entryComponents: [SuPluginsDatepickerComponent]
Include it in the app.component.html
<suplugin-datepicker></suplugin-datepicker>
How to use it
<input type="text" [dateVal]="date1" (onDateSelection)="onDateSelect($event)" [format]="'MMM-YYYY-DD'" [(ngModel)]="date1" suDatePicker />
Input and Output
- @Input - dateVal
- @input - format (optional)
- @output - OnDateSelection
LICENSE
It currently supports ngModel in the text input element and the support for reactiveform is pending still.
License
MIT © Sudhakar Pilavadi
Keywords
Angular 6 Datepicker, Angular Datepicker, Angular 5 Datepicker