You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 18, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+12-50Lines changed: 12 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,6 @@ angular.module('app', [
62
62
]);
63
63
```
64
64
65
-
66
65
Call the directive wherever you want in your html page
67
66
68
67
```html
@@ -72,57 +71,20 @@ Call the directive wherever you want in your html page
72
71
```
73
72
> By default the ng-model will show a Javascript Date() Object inside your input, you can use the options below to set your preferred date format to.
74
73
75
-
##Options
76
-
Angular datepicker allows you to use some options via `attribute` data
77
-
78
-
####Date format
79
-
You can use all the Angularjs `$date` filter date formats (that can be found [here](https://docs.angularjs.org/api/ng/filter/date))
80
-
81
-
```html
82
-
<datepickerdate-format="{{pattern}}">
83
-
<inputng-model="date"type="text"/>
84
-
</datepicker>
85
-
```
86
-
87
-
####Date limits
88
-
You can set date limits using `date-min-limit=""` and `date-max-limit=""` attribute data ( you can use all the accepted date formats by the javascript `new Date()`)
You can set date to be displayed by default with `date-set=""` attribute data ( you can use all the accepted date formats by the javascript `new Date()`)
98
-
99
-
```html
100
-
<datepickerdate-set="2018/07/14">
101
-
<inputng-model="date"type="text"/>
102
-
</datepicker>
103
-
104
-
<datepickerdate-set="{{myModel.date}}">
105
-
<inputng-model="myModel.date"type="text"/>
106
-
</datepicker>
107
-
```
108
-
109
-
####Default date hidden on start
110
-
You can set default date to be shown only in calendar and not in input field by using the `date-set-hidden="true"` option.
0 commit comments