Multiple models for one route in Ember.js -


i'm sort of new mvc applications in general , ember specifically.

i'm writing simple dashboard application ember. application gathering data using json queries several external sources. first iteration of application uses 1 route , 1 model, since don't need interaction in way. reply, i'm using rsvp.hash function collect data. on given timer refresh model making queries again.

app.indexroute = ember.route.extend({    model: function() {      return new ember.rsvp.hash({        releaseinfo: getreleaseinfo(),        buildresults: getsomeexternalresults(),        autotestresults: getsomeotherexternalresults(),      });    },    actions: {      didtransition: function() {        _this = this;        ember.run.later(function() {          _this.refresh();        }, 1000 * 60 * 5);      },    },  });

one thing try make each type of result it's own independent model can fetched , updated independently. how architect application scenario? far understand ember guide, 1 route corresponds 1 controller , model?

i read in one thread views used, can different views have different models? there other solutions can think of?

thankful input


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -