I have a class with properties:
import { and, not } from '@ember/object/computed';
EmberObject.extend({
a: false,
notA: not('a'),
b: true,
c: true,
d: and('b', 'c', 'notA')
});
So d relies on the negation of a.
Is there a notation to do something like d: and('b', 'c', '!a') so that I don't need the redundant notA property?
Aucun commentaire:
Enregistrer un commentaire