@paulbyrne wrote:
I need some architectural advice.
I am using the ember-cli-pickadate add-on in my application. It works well. As it can be initialized with an options object, I want to pass a JSON object from my Rails app to my Ember app. Here is an example.
{ "calendar": { "collection_date_options": { "min": "2016-04-05T07:00:00.000+02:00", "max": "2016-07-04T20:21:26.138+01:00" } "delivery_date_options": { "min": "2016-04-05T07:00:00.000+02:00", "max": "2016-07-04T20:21:26.138+01:00" } } }
Should I wrestle this into an Ember model somehow, with a custom serializer, or is there a simpler way? Ideally I would like it as a model in my route, because the data needs to be there before the component is rendered.
Any thoughts appreciated!
Posts: 3
Participants: 2