Package Exports
- ng2-datetime-prax
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ng2-datetime-prax) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ng2-datetime
Fork of Datetime picker (plugins wrapper) for Angular2. All thanks to Nikola Kalinov
Demo and docs: https://nkalinov.github.io/ng2-datetime
Dependencies
- Bootstrap3 (CSS only)
- jQuery 2+ (supports v3)
- Bootstrap-datepicker (JS+CSS)
npm install --save bootstrap-datepicker- or use the bundled version from
src/vendor/bootstrap-datepicker
- Bootstrap-timepicker (JS+CSS)
npm install --save bootstrap-timepicker- or use the bundled version from
src/vendor/bootstrap-timepicker
Installation
npm install --save ng2-datetime
Usage
- import some way or another the required dependencies
import { NKDatetimeModule } from 'ng2-datetime/ng2-datetime';- Add it to your app module's
importsproperty
@NgModule({
...
imports: [NKDatetimeModule, ...],
...
})- Use it:
<datetime [(ngModel)]="date"></datetime>
See the DEMO and it source for more info and available options.
Thanks
- @jdewit for the timepicker plugin
- @eternicode for the datepicker plugin