在Ember 2.0组件工厂中,必须将`isComponentFactory`属性设置为true

时间:2016-05-12 22:39:25

标签: ember.js ember-cli

使用扩展Ember.Checkbox的组件时,我收到此弃用警告:

In Ember 2.0 component factories must have an `isComponentFactory` property set to true. You registered (subclass of Ember.Checkbox) as a component factory. Either add the `isComponentFactory` property to this factory or extend from Ember.Component.

我很感激对这背后逻辑的一个很好的解释。

0 个答案:

没有答案