QuestionQ26

VerifiedAdobe Experience Manager Sites

An Adobe Commerce developer needs to initialize a JavaScript component by using a data attribute.

Which option initializes the JavaScript component?

Explanation

Adobe Commerce uses the data-mage-init attribute for declarative JavaScript initialization on a specific HTML element. Its value is JSON that associates the component name with its configuration. Adobe Commerce: Call and initialize JavaScript

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!