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
Is your feature request related to a problem? Please describe.
When I implement md-input-date with DS.attr('date') I cannot successfully store and retrieve a date.
Describe the solution you'd like
I'd like md-input-date to work well with DS.attr('date').
Describe alternatives you've considered
I've instead implemented a new transform that works with my Mongo backend date format. Mongo accepts an ISODate formatted date.
Here is my transform ($ ember g transform isodate)
// transforms/isodate.jsimportDSfrom'ember-data';importmomentfrom'moment';exportdefaultDS.Transform.extend({materializeDateFormat: 'D MMMM, YYYY',// Load from Store.deserialize(serialized){returnmoment(serialized).format(this.materializeDateFormat)},// Saving to Store.serialize(deserialized){returnmoment(deserialized,this.materializeDateFormat);}});
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When I implement
md-input-date
withDS.attr('date')
I cannot successfully store and retrieve a date.Describe the solution you'd like
I'd like
md-input-date
to work well withDS.attr('date')
.Describe alternatives you've considered
I've instead implemented a new transform that works with my Mongo backend date format. Mongo accepts an ISODate formatted date.
Here is my model.
Here is my transform (
$ ember g transform isodate
)The text was updated successfully, but these errors were encountered: