Android Studio – how to pass viewModel as parameter in NavHost compose navigation
I have to following NavHost: NavHost( navController = navController, startDestination = Destinations.ComposeEntryPointRoute ) { composable<Destinations.HomeRoute> { HomeContent() } composable<Destinations.GradeConverterRoute> { GradeConverterScreen(navController = navController, gradeConverterViewModel = DONT KNOW WHAT TO DO HERE) } } I don't know how to pass the…