answer is ACE
B is wrong, because RemoteAction is only for Visualforce page, this is Aura Component
D is wrong, because there's already a cmp.get(), use "c.method" to get the controller method
this component doesnt have controller attribute, so yes add controller
the apex method doesnt have static or @AuraEnabled, both are required.
so ACE
B - aura components are inclusive of visualforce and lwc, therefore RemoteAction cannot be ruled out since the type of aura component is not specified.
C - The call to the method is not set correctly and must be corrected to call the apex class followed by the method.
E - to allow for communication, apex class methods have to be decorated with aura enabled, especially since the class is being called in the controller (explained for answer b) then it must be decorated with aura enabled.
CORRECTED TEXT
B - aura components are inclusive of visualforce and lwc, therefore RemoteAction cannot be ruled out since the type of aura component is not specified.
D - The call to the method is not set correctly and must be corrected to call the apex class followed by the method.
E - to allow for communication, apex class methods have to be decorated with aura enabled, especially since the class is being called in the controller (explained for answer d) then it must be decorated with aura enabled.
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.
rufusroffie
Highly Voted 1 year, 8 months agostan_malta
Most Recent 1 year agoSapphire808
1 year, 1 month agoSapphire808
1 year, 1 month agoAppleDash
1 year, 8 months ago