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.
The code of C would be in the controller.
In the lightning component it is the code related with the @wire property. The right syntax of it is A. Please refer to : https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.apex_wire_method
A - Lightning web components can import methods from Apex classes. The imported methods are functions that the component can call either via @wire or imperatively.
https://developer.salesforce.com/docs/platform/lwc/guide/apex.html
The @wire decorator tells getRecord to get the values of the specified fields on the record with the specified $recordId. The $ means that the value is passed dynamically. When the value changes, the wire service provisions data and the component rerenders.
https://developer.salesforce.com/docs/platform/lwc/guide/data-wire-example.html
Yes, Answer is A (@wire) property used in LWC component
upvoted 8 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
JCTheGenius
Highly Voted 3 years, 2 months agoKjlK
Highly Voted 2 years, 11 months agoaregas
Most Recent 5 months, 3 weeks agoSanjeevOnForce
1 year agoKeiyo
1 year, 2 months agoApexMike
2 years, 1 month agoMuzaffarMoiz
3 years, 1 month ago