npm.io
1.0.2 • Published 8 years ago

ngx-datetime

Licence
MIT
Version
1.0.2
Deps
4
Size
138 kB
Vulns
0
Weekly
0
Stars
2

ngx-datetime

npm version

Angular 5 compatible (by https://github.com/robisim74/angular-library-starter) fork of https://github.com/nkalinov/ng2-datetime datetime picker (plugins wrapper)

NPM PACKAGE: https://www.npmjs.com/package/ngx-datetime

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

Dependencies

Installation

npm install --save ngx-datetime

Usage

  1. import some way or another the required dependencies
  2. import {NKDatetime} from 'ngx-datetime/ngx-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

Keywords