public virtual class TopLevel {
@AuraEnabled
public virtual void getwriter() {
System.debug('At top level');
}
public class lowerLevel extends TopLevel {
@AuraEnabled
public override void getwriter() {
System.debug('Within lowerLevel.writer.');
}
}
I'm trying to call lowerLevel from within my javascript code as such
var action = component.get('c.lowerLevel.writer');
action.setCallback(this, function(ret) {});
$A.enqueueAction(action);
But I'm getting the error of
Uncaught Unknown controller action 'lowerLevel.writer'
It makes sense to me that it should work since the TopLevel is implied (as we can call
var action = component.get('c.writer');
and in the system debug we'll find "At top level"
My lightning component is defined as such
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global" controller="TopLevel">
Anyone know how I can make it do what I want?