title: Ember - passing variable from route to controller
body: <p>I have big trouble with EmberJS. I'm using Ember.RSVP.hash to load multiple of models like this:</p>
  
  <p><strong>route:</strong></p>
  
  <pre><code> model() {
      const self = this;
      return Ember.RSVP.hash({
        test: 'sample text'
      }).then((hash) =&gt; {
        return Ember.RSVP.hash({
          test: hash.test,
        });
      }, self);
    }
  </code></pre>
  
  <p>Then in my controller I'm trying to access this model param like this:</p>
  
  <p><strong>controller:</strong></p>
  
  <pre><code>export default Controller.extend({
    init() {
     console.log(this.get('model.test');
    }
  </code></pre>
  
  <p>My console should log 'sample text' but unfortunately I'm getting <em>'undefined'</em></p>
  
  <p>Is this caused by init method I used? I want to notice that I need to have  access to this param immediately after loading this route page.</p>