I am getting an odd bug where capitalizing the first letter of an Apex method that returns a map, causes an error within the javascript controller.
Javascript:
var action = component.get("c.OpAddOnCount");
Apex Controller:
public static Map<String,Integer> OpAddOnCount() {...}
When I capitalize the name in both JS and Apex, I get an error. However, if I make the first letter a lowercase 'o' (in both JS and Apex), everything works fine.
I am new to JS, is there an obvious syntax issue that I am unaware of? I want to make sure I don't get hung up on something like this again for so long!
var action
line? It must be named differently than the Apex Method. Quirky, but it is what it is. – Sebastian Kessel Jul 10 '19 at 19:21