Computed Properties

Last updated 9 months ago

Computed properties are functions that work like properties, they are defined with the getkeyword and no arguments.

component Greeter {
property name : String = ""
get text : String {
"Hello " + name + "!"
}
fun render : Html {
<div>
<{ text }>
</div>
}
}