@hollecar wrote:
Hi
I was following the
I created the scientists route and template as described. But it doesn’t list the scientists names from the data provided in the scientists route?
Is there an error in the quick start guide or do I have an issue on my setup?
scientists.hbs
<h2>List of Scientists</h2> <ul> {{#each @model as |scientist|}} <li>{{scientist}}</li> {{/each}} </ul>
scientists.js
import Route from '@ember/routing/route'; export default class ScientistsRoute extends Route { model() { return ['Marie Curie', 'Mae Jemison', 'Albert Hofmann']; } }
Posts: 4
Participants: 2