angularjs-date-picker
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "angularjs-date-picker", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Yet another Angular Date-picker", | ||
@@ -5,0 +5,0 @@ "main": "src/angularjs-date-picker.js", |
@@ -13,3 +13,3 @@ # angularjs-date-picker | ||
### Prerequisites | ||
Your app must include moment, angular and bootstrap (which will also require Jquery) before the date picker will render correctly. | ||
Your app must include [moment](http://momentjs.com/), angular and bootstrap (which will also require Jquery) before the date picker will render correctly. | ||
@@ -33,3 +33,3 @@ Add them to your index.html: | ||
### Using the directive | ||
Include the date picker module in your controller: | ||
Include the date picker module as a dependency in your module: | ||
```javascript | ||
@@ -50,3 +50,3 @@ angular.module('my.module', ['ui.date.picker']) | ||
`onDateSelected` takes a function with the input parameter of a moment obj. Your outer function passed to the directive could look like this: | ||
`onDateSelected` takes a function with the input parameter of a [Moment](http://momentjs.com/) object. Your outer function passed to the directive could look like this: | ||
```javascript | ||
@@ -53,0 +53,0 @@ function fireDateChange(date){ |
14964
9