title: How to access params in the afterModel hook
body: <p>I was using an RSVP.hash in my <code>model</code> hook. But I needed my route to load dynamic data based on the url (which contains a dynamic segment). i.e. <code>this.route('foo', {path: ':id'})</code>.</p>
  
  <p>So I decided to move some stuff out, to the <code>afterModel</code> hook instead. </p>
  
  <p>However, I needed to execute the store with <code>params</code> (for pagination):</p>
  
  <pre><code>model(params) {
    this.set('params', params);
    return this.store.findRecord('foo', params.foo_id);
  },
  
  afterModel: function(model) {
    console.log(this.get('params')); // logs the right params
    let params = this.get('params');
  
    // This store query needs access to params
    this.store.query('bar', { filter: { 'foo-id': model.get('id') }, page: { number: (params.page ? params.page : 1) } }).then(bars =&gt; {
      this.controller.set('bars', bars);
    });
  }
  
  setupController(controller, model) {
    this._super(controller, model);
  
    this.set('bars', bars);
  }
  </code></pre>
  
  <p>So far I have this, which works:</p>
  
  <pre><code>model(params) {
    this.set('params', params);
    ...
  },
  
  afterModel: function(model) {
    console.log(this.get('params')); // logs the right params
    ...
  }
  </code></pre>
  
  <p>But is this the only way to access <code>params</code> in the <code>afterModel</code> hook?</p>
  
  <p>Is this approach sane?</p>