javascript - Neither model or setupController called on page refresh, but the correct route amd template chosen -


i have ember route this;

this.resource('searchauctions', { path: 'section/search/:date_one/:date_two/:some_id}); 

when using link-to can move route no problems. when refresh page , check ember inspector in correct route, correct controller , model has object values expect, model or setupcontroller hooks not called can't capture values re run search in order populate template.

my controller has action on updates array on model, gets search values , uses:

var urlstring = '/section/search/' + model.date_one + '/' + model.date_two + '/' + model.some_id; window.history.pushstate({}, null, urlstring.trim()); 

to update url. causing problem?

basically refreshing page not calling hooks expect, choosing correct template use.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -