ng8-month-picker
v0.0.2
Published
`ng-month-picker` is a simple month picker for angular application.
Downloads
19
Maintainers
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>