Search code examples
componentsaem

cq:component vs normal component in aem


I want to know what is the difference between if we make a component without cq: component property and with cq: component property in aem . I am new in aem so correct me if i am wrong. Thanks in advance.


Solution

  • cq:primarytype is like data that you use in java, which basically define the type of node. and cq:component is like type there are many type of node available in aem on which we works so by defining cq:component use defines that node is component type. for more information have a look what is aem