Here is a simple Aurelia class :
export class MyClass {
@bindable public someValue: number;
constructor( ) { }
@computedFrom("someValue")
get isPositive() {
return someValue > 0;
}
And the view :
<template>
<div if.bind="isPositive"></div>
</template>
How to make Aurelia report an error if “isPositive” does not exist?
At the moment, it will be confusingly and silently be turned into “false”. I will never know that something’s not working as it should just because I forgot the getter.