how can i populate a view model before setting content view ? code example
Example: how to use by viewModels()
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
kotlinOptions {
jvmTarget = "1.8"
}