Hi Rubén. Glad that you found it easy to understand. The inject method we make in the component (The one you refer) is there to specify that we are going to inject in this consumer. It is not specifying that we are going to inject this dependency (Like you suggest). That’s why the method takes MyPresenter as parameter rather than MyDatabase.

Software Engineer @Zomato. Passionate about tech, music, movies, gaming, coffee and food! Find my writing at https://www.chaddha.me/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store