README
ng2-eonasdan-datetimepicker

- A wrapper directive around the bootstrap-datetimepicker component.
- It is a continuation of angular-eonasdan-datetimepicker.
- It works with angular 2, angular 4 and angular 5
Having problems using the wrapper?
Please, post an issue on GitHub and provide a plunker with your question.
Installation
- Install the directive via bower or npm (or download it manually, as you prefer)
npm install ng2-eonasdan-datetimepicker --save
Include dependent libraries in your application:
- jquery.js,
- bootstrap (.js & .css),
- eonasdan bootsrap datetimepicker (.js & .css),
- moment.js.
Angular cli:
Example configuration for angular-cli in
.angular-cli.jsonfile"styles": [ "styles.css", "../node_modules/bootstrap/dist/css/bootstrap.min.css", "../node_modules/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css" ], "scripts": [ "../node_modules/jquery/dist/jquery.min.js", "../node_modules/bootstrap/dist/js/bootstrap.min.js", "../node_modules/moment/min/moment.min.js", "../node_modules/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js" ],Webpack:
Example configuration for webpack in
vendor.tsfile// css files import 'bootstrap/dist/css/bootstrap.min.css'; import 'eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css'; // js files import * as $ from 'jquery'; window['jQuery'] = window['