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

Salesforce Accredited B2B Commerce Developer Professional (AP-202) Exam - Topic 2 Question 47 Discussion

Which element can be used to pass HTML from a parent component to a child component? 03m 19s
D) <slot></slot> :To pass HTML from a parent component to a child component, the child component needs to have a<slot></slot>element in its template. A slot is a placeholder for markup that a parent component passes into a component's body. Slots are part of the Web Component specification. The parent component can use the slot name or the default slot to specify which HTML content goes into which slot of the child component. The other options are not valid elements for passing HTML from parent to child. Reference: Slots Pass HTML Markup From Parent TO CHILD In Lightning Web Component How parent component pass HTML to child component in Angular?
A) <html></html>
B) <template></template>
C)

Salesforce Accredited B2B Commerce Developer Professional (AP-202) Exam - Topic 2 Question 47 Discussion

Actual exam question for Salesforce's Salesforce Accredited B2B Commerce Developer Professional (AP-202) exam
Question #: 47
Topic #: 2
[All Salesforce Accredited B2B Commerce Developer Professional (AP-202) Questions]

Which element can be used to pass HTML from a parent component to a child component? 03m 19s

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

0/2000 characters
Deeann
9 months ago
Nope, is the only correct one here.
upvoted 0 times
...
Josue
10 months ago
I thought was the answer for a second!
upvoted 0 times
...
Nickolas
10 months ago
Wait, are you sure it's not