To install this library, run:
$ npm install extdate ng-infinite-calendar --save
NOTE: extdate is a simple and lite extension of Date object in javascript, which ng-infinite-calendar uses internally.
You can import your library in any Angular application by running:
$ npm install extdate ng-infinite-calendar
and then from your Angular AppModule
:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import the module
import { InfiniteCalendarModule } from 'ng-infinite-calendar';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
// Specify the module as an import
InfiniteCalendarModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Once the module is imported, you can use its components, directives and pipes in your Angular application:
<!-- You can now use the module component in app.component.html -->
<h1>
{{title}}
</h1>
<infinite-calendar></infinite-calendar>
Several inputs and outputs are provided. See docs for details.
To generate all *.js
, *.d.ts
and *.metadata.json
files:
$ npm run build
To lint all *.ts
files:
$ npm run lint
To publish this library, run:
$ npm run build && cd dist && npm publish
MIT © chase0213