Simple datepicker component for angular application
npm install angular-nepali-datepicker
https://sprajwal078.github.io/angular-nepali-datepicker/
This package uses @angular/cdk and nepali-date
Import the NpDatepickerModule in your app.module.ts
import { NpDatepickerModule } from 'angular-nepali-datepicker';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
NpDatepickerModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
then use <np-datepicker></np-datepicker>
in your template
<np-datepicker ([ngModel])="date"></np-datepicker>
The supported date format is dd-mm-yyyy
- Support other date formats
- Create specs