package Ġcom . sim on m cd . inject able view model ss ample Ċ Ċ import Ġcom . sim on m cd . inject able view models . ViewModel Module Ċ import Ġdagger . Component Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Singleton Ċ @ Component ( ĊĠĠĠ Ġmodules Ġ= Ġ[ ĊĠĠĠĠĠĠĠ ĠViewModel Module :: class , ĊĠĠĠĠĠĠĠ ĠSample Module :: class ĊĠĠĠ Ġ] Ċ ) Ċ interface ĠApp Component Ġ{ ĊĊĠĠĠ Ġfun Ġinject ( app : ĠApp ) ĊĠĠĠ Ġfun Ġinject ( sample Fragment : ĠSample Fragment ) Ċ }