Salesforce Certified Platform Developer 1 (SP25) CRT-450 Question # 39 Topic 4 Discussion

Salesforce Certified Platform Developer 1 (SP25) CRT-450 Question # 39 Topic 4 Discussion

CRT-450 Exam Topic 4 Question 39 Discussion:
Question #: 39
Topic #: 4

An Apex method, getAccounts, that returns a List of Accounts given a searchTerm, is available for Lightning Web Components to use.

What is the correct definition of a Lightning Web Component property that uses the getAccounts method?


A.

@wire(getAccounts, { searchTerm: '$searchTerm' })


B.

@track(getAccounts, '$searchTerm')


C.

@wire(getAccounts, 'searchTerm: $searchTerm')


D.

@wire(getAccounts, '$searchTerm')


Get Premium CRT-450 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.