This Ember Octane the default will be to use ES6 classes for models. The README of this project will have to be adjusted to show how to use this addon with ES6 classes.
Example:
export default class MyModel extends Model { ... }
MyModel.prototype.myAction = collectionAction(...)
(thanks you to @rwjblue, who suggested the snippet above)
This is not exactly pretty though, so we might want to think about new API patterns that we can use in the Octane world in the future.
This Ember Octane the default will be to use ES6 classes for models. The README of this project will have to be adjusted to show how to use this addon with ES6 classes.
Example:
(thanks you to @rwjblue, who suggested the snippet above)
This is not exactly pretty though, so we might want to think about new API patterns that we can use in the Octane world in the future.