Ember model and route setup
<p>Trying to learn Ember with a simple app, which is just a questionnaire.  On the first page of the questionnaire (<code>localhost:4200/animal</code>) they choose their favourite animal from a select box (which is a component I made, that I would like to re-use on other questions).  The select box is populated via a RESTful API.</p>

<pre><code>//routes/animal.js
import Ember from 'ember';
export default Ember.Route.extend({
   model(){
      return this.get('store').findAll('animal');
   }
});


//models/animal.js
export default Model.extend({
   name: attr()
});


//templates/animal.hbs
Choose your favourite animal:
{{select-box
    items=model
    selectedValue=???
}}
{{#link-to "xyz"}}Go to next question{{/link-to}}


//components/select-box/template.hbs
&lt;select {{action 'actionOnChange' on 'change'}} class='{{class}}'&gt;
  {{#each items as |item|}}
    &lt;option value='{{item.id}}' selected={{eq item.id selectedValue}}&gt;{{item.name}}&lt;/option&gt;
  {{/each}}
&lt;/select&gt;


//components/select-box/component.js
import Ember from 'ember';
export default Ember.Component.extend({
    selectedValue: '',

    //when load the page, prepopulate the value
    init(){
        this._super(...arguments);
        //retrieve it from somewhere?
        //this.get('selectedValue') is blank if come back to the page
    },

    actions: {
        actionOnChange(){
            //save it somewhere?  where?
            this.set('selectedValue', this.$('select').val());
        }
    }
});
</code></pre>

<p>If I choose an animal, then go onto the next page of the questionnaire, and then come back to the <code>/animal</code> page again, their selection is lost.  <strong>How do I retain the value that they chose?</strong></p>

<p>All the examples I have looked at show the value being saved in the <code>animal</code> model, but in Ember Inspector on the 'Data' tab for 'animal', it shows all 5 different animals retrieved from the API call.  <strong>Should I have a second model?</strong></p>

<p>Any help is appreciated.</p>