angularjs - Date fails to appear for object on angular front end while it shows up when console.logged in back end -


when console log object in server (right sent front express) see property:

creation: mon jul 13 2015 16:49:25 gmt-0400 (edt), 

however, console log on front end shows:

creation: null 

the mongoose model entry is:

creation: {type: date, default: null} 

i don't know start...i imagine has default being null, removed , problem same...?

i solved problem using npm module "mongoose-timestamp" https://github.com/drudge/mongoose-timestamp


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -