-1

what's the difference between @component & @SubComponent in dagger2? When to use which one of those?

Can you provide examples / code / github or ebook? thanks

jeorfevre
  • 2,286
  • 1
  • 17
  • 27
  • 1
    Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it. – JFPicard Nov 25 '15 at 13:22
  • 1
    reviewed my own question, thanks @JFPicard – jeorfevre Nov 25 '15 at 13:25

1 Answers1

1

this is duplicate of another question. In fact, SubComponent do have a dependency on the Component in dagger, and can't leave without the component.

This is realted to this post : Dagger 2 subcomponents vs component dependencies.

Community
  • 1
  • 1
jeorfevre
  • 2,286
  • 1
  • 17
  • 27