# We love Kotlin. We love MVVM!

**URL:** <https://discuss.kotlinlang.org/t/we-love-kotlin-we-love-mvvm/6439>\
**Category:** Libraries\
**Created:** [January 30, 2018, 4:30am UTC](https://discuss.kotlinlang.org/t/we-love-kotlin-we-love-mvvm/6439 "2018-01-30T04:30:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dukeseal](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dukeseal](https://discuss.kotlinlang.org/u/dukeseal)\
**Post date:** [January 30, 2018, 4:30am UTC](https://discuss.kotlinlang.org/t/we-love-kotlin-we-love-mvvm/6439/1 "2018-01-30T04:30:09Z")

</div>

Hi.  
We love Kotlin. We love MVVM. This is the result: [http://kt-mvvm.org](http://kt-mvvm.org)  
We’d like to know what you guys think about this idea! Here is the model:

```
class Demo : Model.Provider {
    override val objs = Model(this)

    var desc by observable("")
    val todos: MutableList<String> by observableList()

    val addTodo by action {
        todos += desc
        desc = ""
    }
}

```

and here comes the view:

```
<label for="key">New Todo:</label>
<input id="key" type="text" data-bind="textInput: desc"/>
<button data-bind="click: addTodo">Add</button>
<ul class="todos" data-bind='foreach: todos'>
  <li>
    <span data-bind="text: $data"></span> 
  </li>
</ul> 

```

More details including sample Gradle or Maven project and dokka documentation available at [http://kt-mvvm.org](http://kt-mvvm.org)

This is our first attempt to engage with the Kotlin community and we’d be thankful for any feedback. We believe MVVM is a great coding approach for creating portable applications. The [DukeScript](http://dukescript.com) project has already demonstrated it for Java, but we’d like to simplify writing the type-safe models and Kotlin is a great language for doing that. We just need a slight push into the right direction…

Thanks for any comments.  
-s-
