driftyco/ng-cordova — pull request #281 by mrzmyr (2014-09-10 07:58:22+00:00)
Title: feat($cordovaDatePicker): add promises

- add unit tests
- add promises

BREAKING CHNAGE:

Follow this to migrate:

Before:

```js
$cordovaDatePicker.show({
date: new Date(),
mode: 'date'
}, function(date) {
alert(date);
});
```

After:

```js
$cordovaDatePicker.show({
date: new Date(),
mode: 'date'
}).then(function (date) {
alert(date);
});
```

closes #246