In general, the following pattern should be avoided:
export default class PersonComponent extends Component.extend({
fullName: computed({
get() {
return `${this.firstName} ${this.lastName}`;
}
})
}) {
firstName = 'Diana';
lastName = 'Prince';
}
However, it is valid to pass a number of mixins to .extend()
export default class PersonComponent extends Component.extend(FullNameMixin, OtherMixin) {
firstName = 'Diana';
lastName = 'Prince';
}
In general, the following pattern should be avoided:
However, it is valid to pass a number of mixins to
.extend()