Skip to content

Commit

Permalink
Merge pull request #154 from kkoshin/patch-1
Browse files Browse the repository at this point in the history
Documentation is out of date
  • Loading branch information
Tlaster authored Oct 7, 2023
2 parents 770923c + 4259cd2 commit 4bf1ccf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/component/koin.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ And you can use your ViewModel in Compose like this:
val viewModel = koinViewModel<CounterViewModel> { parametersOf(initialCount) }
```

NOTE: If you're using Kotlin/Native target, please use viewModel with modelClass parameter instead.
NOTE: If you're using Kotlin/Native target, please use viewModel with vmClass parameter instead.
```kotlin
val viewModel = koinViewModel(modelClass = CounterViewModel::class) { parametersOf(initialCount) }
```
val viewModel = koinViewModel(vmClass = CounterViewModel::class) { parametersOf(initialCount) }
```

0 comments on commit 4bf1ccf

Please sign in to comment.