ng2-datetime
Datetime picker (plugins wrapper) for Angular.
Demo and docs: https://nkalinov.github.io/ng2-datetime
Dependencies
Installation
npm install --save ng2-datetime
Usage
- import some way or another the required dependencies in the following order:
- Bootstrap CSS
- jQuery
- bootstrap-timepicker + bootstrap-datepicker
See [this example](https://github.com/nkalinov/ng2-datetime/blob/master/src/vendor.ts#L8)
import { NKDatetimeModule } from 'ng2-datetime/ng2-datetime';
- Add it to your app module's
imports
property
...
imports: [NKDatetimeModule, ...],
...
})
```
- Use it:
<datetime [(ngModel)]="date"></datetime>
Contributing
Fork > Create > Pull requestThanks to
- @jdewit for the timepicker plugin
- @eternicode for the datepicker plugin
- you