問題タブ [koin]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - Fragmentの引数項目をKoin依存グラフに追加するには?
ViewModelから取得する必要がある依存関係を持つ がありFragmentますarguments。
したがって、次のようなものです:
フラグメントは、次のSomeValueように引数でを受け取ります。
SomeValue問題は、 から取得したものをFragmentのモジュールに追加する方法がわからないことです。argumentsKoin
フラグメントを Koin ディペンデンシー グラフに貢献させる方法はありますか?
android - Koin を使用して BaseFragment に viewModel を挿入する方法
BaseFragment他の具象クラスによって拡張される抽象クラスを作成しましたFragment。を使用して注入ViewModelしたい。ここに私のBaseFragmentがあります:BaseFragmentKoin
しかし、私はそうすることができません。2.0.1Koinのバージョンを使用しています。