google-developer-training / basic-android-kotlin-compose-training-unscramble

Apache License 2.0
96 stars 137 forks source link

Android Basics: Viewmodel and State in Compose #156

Open alghe-global opened 10 months ago

alghe-global commented 10 months ago

https://developer.android.com/codelabs/basic-android-kotlin-compose-viewmodel-and-state?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-4-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-viewmodel-and-state#4

step 5

under Display random scrambled word

    In the GameViewModel, add a property called currentWord of the type String to save the current scrambled word.

In the GameViewModel what? class or file (outside the class) - the phrasing is incomplete

alghe-global commented 10 months ago

Honestly, the entire codelab is filled with such statements. It is impossible to distinguish between the class GameViewModel in the GameViewModel file or if it's outside the class (at the top of GameViewModel in file).