From 55e44c340e4728ac2bdf88aafe10ed4d3477e5f2 Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Sat, 20 Feb 2016 15:41:00 +0200 Subject: [PATCH] Add usage to Readme --- Readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Readme.md b/Readme.md index 285dc80..ebb674f 100644 --- a/Readme.md +++ b/Readme.md @@ -8,6 +8,12 @@ Date input via date, month & year select fields - Depends on Moment.js - Plays nicely with Moment's language packs for internationalization - see the [Moment.js docs](http://momentjs.com/docs/#/i18n/) +Usage +----- +```html +
+``` + Its advised not to use this directive on an input or select element to avoid confict regarding ngModel.$render. Also be aware that a new scope is created, so remember the best practice of always having a dot in your ng-model attrs. [Example](http://sambs.github.io/angular-sb-date-select/)