Skip to content

a-frank/viewmodel-parameters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

 
 
 

Contributors

Languages