alexciesielski / ng2-datetime

Datetime picker plugins wrapper for Angular2

Home Page:https://nkalinov.github.io/ng2-datetime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ng2-datetime

npm version

Datetime picker (plugins wrapper) for Angular2.

Dependencies

Installation

npm install --save ng2-datetime

Usage

  1. import some way or another the required dependencies
  2. import {NKDatetime} from 'ng2-datetime/ng2-datetime';
  3. Add to your component's directives property
@Component({
    ...
    directives: [NKDatetime],
    ...
})
  1. Use it: <datetime [(ngModel)]="date"></datetime>

See the DEMO and it source for more information.

Contributing

Fork > Create > Pull request

Thanks

TODO:

  • test ControlValueAccessor

About

Datetime picker plugins wrapper for Angular2

https://nkalinov.github.io/ng2-datetime

License:GNU General Public License v3.0


Languages

Language:TypeScript 44.5%Language:HTML 40.7%Language:JavaScript 14.7%Language:CSS 0.1%