Lets say I have a component A and component B. In component A, html file I am writing
data-sly-use.head="com.Mymodel"
now in Component B also I need to use the same class, so in html file I have written
data-sly-use.head="com.Mymodel"
Component A and Component B can be available in a page or may not be available at a time. What I want is that if both Component A and B present in a page then I do not want to initialise Sling model (com.Mymodel) twice. I would like to initialise only one time. How to do it?