This directive is designed to provide easy and intuitive input of moment.js datetime objects.
Desgined to be as simple as possible to afford intuitive interactions.
Converted into an angular directive for your convenience :)
Click here for a live demo.
- Install 'angular-datetime-input' with bower
bower install angular-datetime-input
- Add 'g1b.datetime-input' module to your app config
angular.module('myApp', [
'g1b.datetime-input',
......
])- Use 'datetime-input' directive in a view
<datetime-input start="start" end="end" handler="print(start, end)"></datetime-input>| Property | Usage | Default | Required |
|---|---|---|---|
| datetime | moment.js datetime object or a datetime string | none | yes |
| handler | Handler function is fired on change of datetime object | none | no |