A decoration tag has been defined for an AEM component.
Which definition will be picked by AEM?
Show answer and explanation
Correct answer: C
When a decoration tag has been defined for an AEM component, the definition that will be picked by AEM is tagName defined using @ decorationTagName attribute in HTL.
Decoration Tag in HTL: The@ decorationTagNameattribute in HTL (HTML Template Language) allows developers to specify a decoration tag directly in the template.
Priority: When the decoration tag is defined in multiple places, the@ decorationTagNameattribute in HTL takes precedence over other definitions.
Usage: This approach provides flexibility and direct control within the component's markup, ensuring the correct tag is used. AEM HTL documentation explains the use of the@ decorationTagNameattribute and its precedence in determining the decoration tag.