I’ve been using Ember CLI to develop an API and it’s been interesting to get into the ‘ember way’ but I’ve found a quite tough situation I don’t know how I should proceed. I’ll present my models case:
projectbe a model with several info attributes such as name.
structureRowbe another model with some info attributes, a parent
structureRowand a next
Now I think of two possible directions to address this:
I set up my backend API to give me the rendered structure of the project loaded, with all the relations resolved to certain depth instead of giving me references.
I set up my backend API to give me references only and resolve them as needed in the frontend. However, I don’t know how I could make it using ember-data, given the strong convention with routes and templates.
What would you recommend to I set this up in an ember-way instead of writing some arbitrary AJAX handling in a controller?