mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-24 18:30:23 +00:00
add basic date support
This commit is contained in:
parent
7cef4358ae
commit
cc097867f4
1 changed files with 4 additions and 0 deletions
|
|
@ -35,6 +35,10 @@ foreach({
|
|||
},
|
||||
|
||||
'date': function(date) {
|
||||
if (date instanceof Date)
|
||||
return date.toLocaleDateString();
|
||||
else
|
||||
return date;
|
||||
},
|
||||
|
||||
'json': function(object) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue