Get the model definition from records


#1

I would like to obtain the definition of any model passed to a component. As far as I know, you can get the model definition writing something like this import user from "../models/user" but, is there any way of taking directly from the records?


#2

I answer myself:

Ember.get(this.get('model.type'),'attributes');