Skip to content

a-frank/viewmodel-parameters

Repository files navigation

Parameter injection into ViewModels

This small example demonstrates how parameters can be injected directly into an Android ViewModel, getting rid of init functions. As a result the ViewModel becomes cleaner and is easier to test.

A detailed description of this example can be found on Dev.to.

About

Example on how to inject parameters directly into an Android ViewModel

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages