mercredi 12 juillet 2017

Not displaying model information

I am new to ember and cannot seem to figure out why my list will not display. Here is the code where I create the model on the route page:

    import Ember from 'ember';

export default Ember.Route.extend({
    model: function(){
        return ['Ford', 'tesla','lexus'];
    }
});

and this is my template page

 <h1>Cars</h1>
<ul>
    
        <li></li>
    
</ul>

But for some reason no information is being displayed. Does anybody notice something I am not seeing? Thanks in advance!




Aucun commentaire:

Enregistrer un commentaire