Hey all! How can I injected in `val`-field of Frag...
# android
a
Hey all! How can I injected in
val
-field of Fragment/Activity?
r
It depends on your injection framework. Kodein lets you do this without too much trouble. With Dagger I haven't found a good way other than a
val
whose getter reads a separate
@Inject
-annotated
lateinit var
a
i’ve found strange way, not sure it works well: we can use
get
-methods from component