Ember.inspect() calls toString() objects, which in turn call some internal metal properties to get the name.
However, there is an internal property that people used to get the name:
this.__proto__._debugContainerKey
This outputs component:my-component , then you can simply split by : There will be a problem that will create a publicly available way to expose the object’s meta-information, which we will be able to use in the future: https://github.com/emberjs/ember.js/issues/10742 p>
source share