ExamGecko
Question list
Search
Search

Related questions











Question 16 - AD0-E134 discussion

Report
Export

SPA components are connected to AEM components via the MapTo() method.

Which code should be used to correctly connect an SPA component called ItemList to its AEM equivalent?

A.
('project/components/content/itemList,).MapTo(ltemList,ltemListEditConfig);
Answers
A.
('project/components/content/itemList,).MapTo(ltemList,ltemListEditConfig);
B.
MapToCproject/cornponents/content/itemList^ltemListJtemListEditConfig);
Answers
B.
MapToCproject/cornponents/content/itemList^ltemListJtemListEditConfig);
C.
ItemList.MapToCproject/components/content/itemList1);
Answers
C.
ItemList.MapToCproject/components/content/itemList1);
D.
MapTo(ltemList)('project/components/content/itemList,,ltemListEditConfig);
Answers
D.
MapTo(ltemList)('project/components/content/itemList,,ltemListEditConfig);
Suggested answer: C

Explanation:

The MapTo() method is used to map a SPA component to an AEM component by specifying the sling:resourceType of the AEM component as an argument. The MapTo() method should be called on the SPA component and not on a string. The second argument of the MapTo() method is optional and can be used to provide an edit configuration for the SPA component.

Reference: 1 Map SPA components to AEM components section 2 Developing SPAs for AEM section

asked 02/10/2024
Erik de Bont
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first