ngx-datetime-16
v16.2.2
Published
Update of ng2-datetime that is compatible with Angular v16+
Downloads
37
Maintainers
Readme
ngx-datetime-16
This library is a continuation of the ng2-datetime
library by nkalinov, now updated to support Angular v16.
Dependencies
- Bootstrap (v3 to v5) CSS only
- jQuery (v3.3.x to v3.7.0)
- Bootstrap-datepicker (v1.6.x to v1.10.x) (JS+CSS)
- Bootstrap-timepicker (v0.5.0 to v0.5.2) (JS+CSS)
Installation
npm install --save ngx-datetime-16
Usage
Import the required dependencies in the following order:
- Bootstrap CSS
- jQuery
- bootstrap-timepicker + bootstrap-datepicker
See this example for details.
import { NgxDatetimeModule } from 'ngx-datetime-16';
Add it to your app module's
imports
property
@NgModule({
...
imports: [NgxDatetimeModule, ...],
...
})
- Use it in your templates:
<datetime [(ngModel)]="date"></datetime>
Acknowledgements
- @jdewit for the timepicker plugin
- @eternicode for the datepicker plugin
- @nkalinov for the original ng2-datetime library.
- All contributors and users of this library.