Last active
June 26, 2021 08:25
-
-
Save orcchg/6c0cad3c70c6e55d7b04a95202336d0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class StockListFragment : BaseFragment(R.layout.main_stock_list_fragment) { | |
| @Inject lateinit var factory: StockListViewModelFactory | |
| private val binding by viewBindings(MainStockListFragmentBinding::bind) | |
| private val viewModel by viewModels<StockListViewModel> { factory } | |
| override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
| DaggerStockListFragmentComponent.factory() | |
| .create(featureApi = api.getFeature()) | |
| .inject(this) | |
| super.onViewCreated(view, savedInstanceState) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment