samedi 9 avril 2016

How to get attr which contains "_" in name?

I have something like that in model:

export default DS.Model.extend({
  something: DS.attr(),
  something_else: DS.attr()
});

and like that in template:

{{model.something}}
{{model.something_else}}

And "something" works ok, but "something_else" doesn't. How can i fix that problem? Thanks for answer!

Aucun commentaire:

Enregistrer un commentaire