Guide: Use Constructor Parameters for Dependency Injection
This guide assumes you've already created a Model, ViewModel, or a service class. If not, here's a quick guide to do that.
To use Dependency Injection in your Model, ViewModel, or any class, simply add the required (ideally) interfaces and/or service classes as constructor parameters. The DI container will provide them at runtime.


