Ember data returns undefined on model.get('attributes') or model.get('fields')


#1

Here http://emberjs.com/api/data/classes/DS.Model.html#property_attributes and here http://emberjs.com/api/data/classes/DS.Model.html#property_fields described static properties of Model. But I’m getting undefined when trying to “get” them on Ember Data 16.1.


#2

They are properties on a class not an instance… Use Ember.get and pass the class as the first parameter.