ngx-datetime-16
This library is a continuation of the ng2-datetime
library by nkalinov, now updated to support Angular v16.
Dependencies
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