Skip to content

Instantly share code, notes, and snippets.

@tsuijten
Created May 9, 2019 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsuijten/e4eb15859cedfcc389f0d139755bf63d to your computer and use it in GitHub Desktop.
Save tsuijten/e4eb15859cedfcc389f0d139755bf63d to your computer and use it in GitHub Desktop.
@Model
class CounterModel {
var counter: Int = 0
var header = "Counter demo"
fun add() { counter++ }
fun subtract() { counter-- }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment