mardi 8 novembre 2016

Why is this model name not being displayed in Ember 2.5

I have a really simple view that simply displays the name of an associated model:

<h1>Report name is: </h1>

The router is simple and has a standard model method:

  model: function(params) {
    return this.store.find('report-run', params.report_run_id);
  },

and the associations are set up correctly:

// report-run
export default DS.Model.extend({
  report: DS.belongsTo('report')
});

Report has a 'name' attribute, the value is 'User Report'

I can confirm that the AJAX call for the report is happening, and I can confirm that the report exists in the ember store, but when I render the page the report name is blank:

blank report name

Can anyone offer any suggestions as to why the report name isn't being displayed?




Aucun commentaire:

Enregistrer un commentaire