Ember.js controller variables reseting after page refresh
问题 Using Ember.js: I have a Route App.QueryDataRoute = Ember.Route.extend({ model: function(params) { return Ember.RSVP.hash({ propertyObject: this.controllerFor("cres").get("properties").findBy('title', params.propertytype_title), nrOfOffers: this.controllerFor("queryData").get("nrOfOffers"), deal: this.controllerFor("queryData").get("deal"), price: this.controllerFor("queryData").get("price"), surface: this.controllerFor("queryData").get("surface"), }); } }); All those .get(' [variable name] '