1.8.7 • Published 6 years ago

ng2-atrium-datepicker v1.8.7

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

ng2-atrium-datepicker

Angular2 Datepicker Component

ng2-atrium-datepicker is a datepicker component for Angular2.

Installation:

Install ng2-atrium-datepicker via npm

npm install ng2-atrium-datepicker --save

Integration

// app.module.ts
import { DatePickerModule } from 'ng2-atrium-datepicker';

@NgModule({
  ...
  imports: [ DatePickerModule ]
  ...
})
export class AppModule { }

// app.component.ts
import { Component } from '@angular/core';
import { DatePickerOptions, DateModel } from 'ng2-atrium-datepicker';

@Component({
  selector: 'app-root',
  templateUrl: 'app.component.html'
})
export class AppComponent {
  date: DateModel;
  options: DatePickerOptions;

  constructor() {
    this.options = new DatePickerOptions();
  }
}

// app.component.html
<ng2-datepicker [options]="options" [(ngModel)]="date"></ng2-datepicker>

Run Included Demo

git clone https://github.com/sam-blackfly/ng2-datepicker.git --depth 1
cd ng2-datepicker
npm install
npm start

AoT Library Build

npm run build:lib

Licence

This project is licensed under the MIT license. See the LICENSE file for more info.