Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

Latest commit

 

History

History
20 lines (15 loc) · 325 Bytes

computed-properties.md

File metadata and controls

20 lines (15 loc) · 325 Bytes

Computed Properties

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>
  }
}