13 lines
333 B
Kotlin
13 lines
333 B
Kotlin
|
package org.mosad.teapod.ui.home
|
||
|
|
||
|
import androidx.lifecycle.LiveData
|
||
|
import androidx.lifecycle.MutableLiveData
|
||
|
import androidx.lifecycle.ViewModel
|
||
|
|
||
|
class HomeViewModel : ViewModel() {
|
||
|
|
||
|
private val _text = MutableLiveData<String>().apply {
|
||
|
value = "This is the home Fragment"
|
||
|
}
|
||
|
val text: LiveData<String> = _text
|
||
|
}
|