Salesforce
CRT-450 · Question #220
Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?
The correct answer is C. @AureEnabled (cacheable=true). See the full explanation below for the reasoning.
Question
Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?
Options
- A@RemoteAction
- B@AureEnabled
- C@AureEnabled (cacheable=true)
- D@RemoteAction(|cacheable=true)
How the community answered
(26 responses)- A15% (4)
- B4% (1)
- C69% (18)
- D12% (3)
Community Discussion
No community discussion yet for this question.