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

Here Model - 4.6 - Ember API Documentation and here Model - 4.6 - Ember API Documentation described static properties of Model. But I’m getting undefined when trying to “get” them on Ember Data 16.1.

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

1 Like