We have code in our ember 2.9.0 project which has Components with properties like this:
hide: on("init", computed("hasEnoughData", function () {
return !this.hasEnoughData;
})),
When I migrate it to ember 3.4, it breaks with this error:
Assertion Failed: on expects function as last argument
Basically, the on()
function expects the last param to be a function. This code used to work with 2.9 to combine both computed
and on()
.
Is there a recommended way to do this with ember 3.4?
Aucun commentaire:
Enregistrer un commentaire