ember.js - Get class/type of model -


Is there a way to get a model class or type? For example, if my model was a "todo" and if I want to record that information by myself:

  todo = this.get ('model'); Is it possible to get it from Todo.class  

or the content of a controller? I think the model is just a nickname for the content but I may be wrong. I thought it should be an easy way to do this, but after going too much I did not find anything. Thanks in advance for the help.

The constructor probably wants what you want, it's located on the object's proto

  `todo.constructor`  


Comments

Popular posts from this blog

Folder list php -

testing Spring-Security -

javascript - NodeJS "Error code: ERR_EMPTY_RESPONSE" -