Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- On Activity Parent
- // initialize dagger component
- lateinit var goodsDetailComponent: GoodsDetailComponent
- goodsDetailComponent = (application as OpoApplication)
- .applicationComponent
- .goodsDetailComponent()
- .create()
- // connect activity to component
- goodsDetailComponent.inject(this)
- On Fragment Child
- (activity as DetailProductActivity)
- .goodsDetailComponent
- .inject(this)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement