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
2 months ago
As a wise man once said, 'With great power comes great responsibility to use the correct MapTo() syntax.'
upvoted 0 times
...
Glenn
3 months ago
Haha, option C tries to use the component name as the argument. That's not how it works!
upvoted 0 times
Youlanda
1 months ago
Nan: Option A seems to be the correct one.
upvoted 0 times
...
Carey
1 months ago
User 3: Yeah, A looks like the right choice.
upvoted 0 times
...
Nan
2 months ago
User 2: I think the correct code is A.
upvoted 0 times
...
Sabra
2 months ago
User 1: Option C is definitely incorrect.
upvoted 0 times
...
...
Rosalia
3 months ago
Option B is just plain wrong. The syntax is all over the place.
upvoted 0 times
Carey
1 months ago
User3: Yeah, option A seems to be the right choice for connecting the components.
upvoted 0 times
...
Tyisha
1 months ago
User2: I agree, option B looks completely off.
upvoted 0 times
...
Raylene
2 months ago
User1: I think option A is the correct syntax.
upvoted 0 times
...
...
Madonna
3 months ago
I think option D looks more intuitive, but A is probably the right one based on the syntax.
upvoted 0 times
...
Luz
3 months 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 months ago
Thanks for the clarification!
upvoted 0 times
...
Cora
2 months ago
That's correct! The MapTo() method is used to connect SPA components to their AEM equivalents.
upvoted 0 times
...
Cora
3 months ago
A) ('project/components/content/itemList,).MapTo(ltemList,ltemListEditConfig);
upvoted 0 times
...
...
Terrilyn
3 months ago
Why do you think D is correct?
upvoted 0 times
...
Taryn
3 months ago
I disagree, I believe the correct code is D.
upvoted 0 times
...
Terrilyn
3 months ago
I think the correct code is A.
upvoted 0 times
...

Save Cancel