ember.js - Emberjs. How to Access the model in the Router coming from #link-to -


i developing simple demo ember reads google news rss.

my current url is:

path/:query

router.map:

  this.resource('query', {path:':query_done'});   this.resource('time', {path:':query_done/:time_interval'}); 

from view going #link-to url/:query/:time route:

{{input type="text" id="timebox" placeholder="time" value=timetext }}   {{#link-to 'time' timetext}}time interval{{/link-to}} 

how access model retrieve url/:query use now?

app.querytime = ember.route.extend({ model: function (params) { ????  }); 


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -