EmberJS, how to query the model with getter functions?
I don't know if I asked correctly, but instead of having the collection of
data, I would like to compute the data based on parameter. Something like:
var date = new Date();
var events = model.getEvents(date);
{{#each event in events}}
event
{{/each}}
The difference being here that getEvents does both the fetching from
server, plus local computation and transformation before returning the
collection.
No comments:
Post a Comment