ng-voila-month-picker

ng-month-picker is a simple month picker for angular application.

Usage no npm install needed!

<script type="module">
  import ngVoilaMonthPicker from 'https://cdn.skypack.dev/ng-voila-month-picker';
</script>

README

ng-month-picker

ng-month-picker is a simple month picker for angular application.

Features

  • Simple layout
  • Enable/disable form control
  • Can be used as an angular form control
  • Customize functionality

Installation

  • npm install ng-month-picker --save

Usage

  • import { NgMonthPickerModule } from 'ng-month-picker';

  • add NgMonthPickerModule to the imports of your NgModule

// app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgMonthPickerModule } from 'ng-month-picker';
import { AppComponent } from './app.component';
import { FormsModule } from '@angular/forms';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    NgMonthPickerModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

And you are good to go...

Use it in your anywhere in your application

<ng-month-picker [(ngModel)]="currentMonth"></ng-month-picker>