Permalink
Browse files

feat(input): support types date, time, datetime-local, month, week

On older browser that don't support the new HTML5 inputs
and display a text input instead, the user is required to enter
the data in the corresponding ISO format. The value in `ng-model`
will always be a date.

E2e tests contain a workaround to a bug in webdriver,
see angular/protractor#562.

Also adds weeks as format to the `dateFilter`.

Related to #757.
Closes #5864.
  • Loading branch information...
1 parent 0609453 commit 46bd6dc88de252886d75426efc2ce8107a5134e9 @blesh blesh committed with tbosch Dec 4, 2013
Showing with 1,287 additions and 6 deletions.
  1. +3 −0 src/.jshintrc
  2. +533 −2 src/ng/directive/input.js
  3. +32 −2 src/ng/filter/filters.js
  4. +712 −1 test/ng/directive/inputSpec.js
  5. +7 −1 test/ng/filter/filtersSpec.js
View
@@ -101,6 +101,9 @@
"getter": false,
"getBlockElements": false,
+ /* filters.js */
+ "getFirstThursdayOfYear": false,
+
/* AngularPublic.js */
"version": false,
"publishExternalAPI": false,
Oops, something went wrong.

0 comments on commit 46bd6dc

Please sign in to comment.