Sign in Go Pro

Koin

Lazy and Eager Injection

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson
Autoplay

Up next

Previous

About

When it comes to the injection of our dependencies there are two approaches which we can take, these are Lazy and Eager injection. In this lesson we will explore these two concepts for use within our sample project.

Instructor

Links

Comments

When I try to run the app in this step, there's an error. In module.kl DataRepositoryImpl need an argument. How to handle this?

Nevermind, I forgot to add app name in manifest. :P

Same error here, and I put the name in the Manifest file.

You may fix it with "factory { DataRepositoryImpl(get()) }".

>
You need to go PRO to post comments.

Lessons in Koin