angular-nepali-datepicker
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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

Package Sidebar

Install

npm i angular-nepali-datepicker

Weekly Downloads

13

Version

0.1.4

License

MIT

Unpacked Size

360 kB

Total Files

33

Last publish

Collaborators

  • prajwal078