Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E134 Topic 4 Question 46 Discussion

Actual exam question for Adobe's AD0-E134 exam
Question #: 46
Topic #: 4
[All AD0-E134 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: C

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.


Contribute your Thoughts:

Vallie
13 days ago
As a wise man once said, 'With great power comes great responsibility to use the correct MapTo() syntax.'
upvoted 0 times
...
Glenn
16 days ago
Haha, option C tries to use the component name as the argument. That's not how it works!
upvoted 0 times
...
Rosalia
19 days ago
Option B is just plain wrong. The syntax is all over the place.
upvoted 0 times
...
Madonna
25 days ago
I think option D looks more intuitive, but A is probably the right one based on the syntax.
upvoted 0 times
...
Luz
29 days ago
The correct answer is A. The MapTo() method takes the path to the AEM component and the component class as arguments.
upvoted 0 times
Cora
2 days ago
That's correct! The MapTo() method is used to connect SPA components to their AEM equivalents.
upvoted 0 times
...
Cora
19 days ago
A) ('project/components/content/itemList,).MapTo(ltemList,ltemListEditConfig);
upvoted 0 times
...
...
Terrilyn
1 months ago
Why do you think D is correct?
upvoted 0 times
...
Taryn
1 months ago
I disagree, I believe the correct code is D.
upvoted 0 times
...
Terrilyn
1 months ago
I think the correct code is A.
upvoted 0 times
...

Save Cancel