Valid CRT-450 Dumps shared by ExamDiscuss.com for Helping Passing CRT-450 Exam! ExamDiscuss.com now offer the newest CRT-450 exam dumps, the ExamDiscuss.com CRT-450 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CRT-450 dumps with Test Engine here:
An Apex method, getAccounts, that returns a list of Accounts given a searchTern, is available for Lightning Web Components to use. What is the correct definition of a Lightning Web Component property that uses the getAccounts method?
Correct Answer: C
The correct definition of a Lightning Web Component property that uses the getAccounts method is option C. In Salesforce, the @wire decorator is used to read data from one of the wire adapters built into Lightning Web Components or create a JavaScript property in a Lightning web component. The property is then provisioned with data, error, or both. A provisioned property has a specific shape-data and error properties-designed for working with wire services. In this case, @wire(getAccounts, { searchTern: '$searchTern' }) accountList; is the correct syntax where: * getAccounts is the Apex method. * { searchTern: '$searchTern' } are parameters passed to the Apex method. * accountList is the JavaScript property that gets assigned the data returned by getAccounts. References: Lightning Web Components Developer Guide
Recent Comments (The most recent comments are at the top.)
Recent Comments (The most recent comments are at the top.)
B is correct
https://developer.salesforce.com/docs/platform/lwc/guide/apex-wire-method.html
@wire(getAccounts, { searchTern: '$searchTern' }) is on b