Which two lines must change in the above ode to make the Apex method able to be wired?

A developer created a Lightning web component for the Account record page that displays the five most recently contacted Contacts for an Account. The Apex method, getRecentContacts, returns a list of Contacts and will be wired to a property in the component.

Which two lines must change in the above ode to make the Apex method able to be wired? Choose 2 answers
A . Add AuraEnanled(cacheabletrue) to the line 08
B. Remove private from line 09.
C. Add @AuraEnabled (cacheabletrue) to line 03.
D. Add public to line 04.

Answer: C,D

Latest PDII Practice Questions with 280 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments