Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
update parameter name
  • Loading branch information
kkoshin authored Oct 7, 2023
1 parent 770923c commit 4259cd2
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 4259cd2

Please sign in to comment.