Which definition of the Apex method, to which the searchResults property is wired, should be used?
A Lightning component has a wired property, searchResults, that stores a list of Opportunities.
Which definition of the Apex method, to which the searchResults property is wired, should be used?
A . @AuraEnabled(cacheable=true)
public static List<Opportunity> search(String term) { /* implementation*/ }
B . @AuraEnabled(cacheable=true) public List<Opportunity> search(String term) { /*implementation*/ }
C . @AuraEnabled(cacheable=false) public static List<Opportunity> search(String term) { /*implementation*/ }
D . @AuraEnabled(cacheable=false) public List<Opportunity> search(String term) { /*implementation*/ }
Answer: A
Latest CRT-450 Practice Questions with 372 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments