Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

angular-nepali-datepicker

sprajwal07896MIT0.1.4TypeScript support: included

Simple Nepali datepicker component for angular applications

angular, nepali, datepicker, vikram sambat, bikram sambat, nepali datepicker, bs, ad

readme

Angular Nepali Datepicker

Simple Nepali datepicker component for angular application

Installation

npm install angular-nepali-datepicker

Demo

https://sprajwal078.github.io/angular-nepali-datepicker/

Note

This package uses @angular/cdk and nepali-date

Usage

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>

Format

The supported date format is dd-mm-yyyy

Todo

  • Support other date formats
  • Create specs