From b5fc2fc387a42f273bc59fae4f6c98fdcc9f4fbb Mon Sep 17 00:00:00 2001 From: Marcin Wosinek Date: Fri, 4 Sep 2015 13:54:46 +0100 Subject: [PATCH] add model information to the README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 1a7a89d..9862638 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,9 @@ Then use the `pikaday` attribute to bind the picker to a scope. ``` You now have access to Pikaday's methods from the scoped object `myPickerObject`. +## Model +The value put to `ng-model` will be a formated string with chosen date. To store & read `Date` objects form model, you can combine the module with `$parsers` & `$formatters` or let [angular-dateParser](https://github.com/dnasir/angular-dateParser) do it for you. + ## Attributes Any of Pikaday's options can be passed to the corresponding attribute, the directive takes care of coercing the value to the proper type.*