1.0.1 • Published 1 year ago

@blackcoronel/angular-year-calendar v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Angular Year Calendar

@blackcoronel/angular-year-calendar
Forked from @iomechs/angular-year-calendar
Compatible with Angular 14

Actions Status

License: MIT

A simple, easily to use Year calendar for your Angular apps.

@blackcoronel/angular-year-calendar

Demo

https://iomechs.github.io/angular-year-calendar/demo

Docs

https://iomechs.github.io/angular-year-calendar

Dependencies

The Angular Year Calendar library depends on date-fns and @angular/cdk. If you don't have them installed in your project, you'll have to install them urself.

Usage

Install the package in your project's folder by using npm or yarn:

npm install @blackcoronel/angular-year-calendar --save

# OR

yarn add @blackcoronel/angular-year-calendar -S

Import YearCalendarModule in your AppModule as below:

import { YearCalendarModule } from '@blackcoronel/angular-year-calendar';

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    BrowserAnimationsModule,
    YearCalendarModule, // <-- here
  ]
});

Then in your HTML, you can use as:

<yc-year-calendar
  [loadingData]="isLoadingData"
  (viewYearChanged)="viewYearChangedHandler($event"
  (eventDayClicked)="eventDayClickHandler($event)"
  [ycConfig]="myCalendarConfig"
  [selectedDate]="currentDate">
</yc-year-calendar>

License

MIT © IOMechs