vendredi 3 juin 2016

Ember-cli Component show records to component template

test-component.js

import Ember from 'ember';

export default Ember.Component.extend({
        store: Ember.inject.service(),
    showLang: Ember.on('init', function() {
      var store = this.get('store');
      return store.findAll('language');
    }),
});

I checked with console and yes they show
XHR finished loading: GET "http://ift.tt/1U2HLXH".
So backend recognize my test-component function.

Now in test-component.hbs I have


<li><a href="/all/language/"></a></li>
   

The result was empty. How can I do so data could show up in test-component.hbs?




Aucun commentaire:

Enregistrer un commentaire