jeudi 24 septembre 2015

EmberJS access properties without model object

I've got my route setup like so

export default Ember.Route.extend({
  model: function(params) {
    return this.store.findRecord('organization', params.organization_id);
  }
});

When I'm printing out the properties, I have to do this in my template.

{{ model.name }}

Is there anyway I can drop the model part so it's just name?




Aucun commentaire:

Enregistrer un commentaire