Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4831

Handling non model data

$
0
0

@bsylvain wrote:

I guess this is as much a question related to ember than an API design problem.

When you have non model data, like the count of elements by criteria on an index view or the “last time period” stats, how should it be done ?

On the API side should it be custom action on the closest controller to the data ? A catch all non rest controller with a collection of random data ?

In ember, should it be a service or a custom model for every custom data needed?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4831

Trending Articles