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
Post a Comment