npm.io
0.0.5 • Published 7 years ago

ng-calender-plus

Licence
SEE LICENSE IN LICENSE
Version
0.0.5
Deps
2
Size
281 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

NgCalenderPlusApp

Development in Progress and Only Basic Features are available now But you can view source code at Github

Work In Progress

Table of contents:

Installation

npm i ng-calender-plus --save

How it works

just a calender for now and will update complate usage once i completed my development

Usage

Include theng-calender-plus module in your application at any place. The recommended way is to add forRoot initialization in the main app module.

import { BrowserModule } from '@angular/platform-browser';
import { NgCalenderPlusModule } from 'ng-calender-plus';

@NgModule({
    imports: [
        BrowserModule,
        NgCalenderPlusModule.forRoot()
    ],
    bootstrap: [AppComponent]
})
export class AppModule { }
Place this below code wherever you want to render the scheduler
<ar-ng-calender-plus  (DayClick)="dayClick($event)"></ar-ng-calender-plus>

Events Available

DayClick which will emit day clicked event

constructor(private ngCalenderPlusService: NgCalenderPlusService) {
    this.ngCalenderPlusService.getCalenderEvent().subscribe((data: any) => {
      console.log('day clicked from service', data);
    });
  }

  dayClick(data) {
    console.log('day clicked from output emitter', data);
  }

License

Licensed under MIT

Keywords