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

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -