Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<div sb-date-select sb-select-class="form-control" min="2008-11-24" max="2016-01-01" ng-model="obj.myDateModel"></div>
```

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/)
Expand Down