And I really liked that I can write the following ...
# javascript
d
And I really liked that I can write the following code:
Copy code
class CounterViewModel : ViewModel() {
    var count = 0
    val nextCommand = relayCommand { next() }
    val backCommand = relayCommand { back() }

    private fun next() {
        count++
        emitPropertyChanged(this::count)
    }

    private fun back() {
        count--
        emitPropertyChanged(this::count)
    }

}