14 lines
361 B
Kotlin
14 lines
361 B
Kotlin
package ru.touchin.template.feature
|
|
|
|
import androidx.lifecycle.ViewModel
|
|
import com.github.terrakok.cicerone.Router
|
|
import javax.inject.Inject
|
|
import ru.touchin.template.navigation.Screens
|
|
|
|
class SingleViewModel @Inject constructor(
|
|
private val router: Router,
|
|
) : ViewModel() {
|
|
fun navigate() {
|
|
router.newRootScreen(Screens.First())
|
|
}
|
|
} |