ng2-datetime
Datetime picker (plugins wrapper) for Angular.
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 import { NKDatetimeModule } from 'ng2-datetime/ng2-datetime';
- Add it to your app module's
imports
property
@NgModule({
...
imports: [NKDatetimeModule, ...],
...
})
- Use it:
<datetime [(ngModel)]="date"></datetime>
See the DEMO and it source for more info and available options.
Contributing
Fork > Create > Pull request
Thanks to