I have a namespace issue - at least that's what I think it is.
I have a basic simple Apex Class with the following definition:
public with sharing class TestSub {
public class SubOne {
@AuraEnabled public string name;
}
}
Now in my lightning component (TestComp.cmp) I have the following code:
<aura:component>
<!-- This works -->
<aura:attribute name="works" type="TestSub" />
<!-- This doesn't -->
<aura:attribute name="wontWork" type="TestSub.SubOne" />
</aura:component>
So the above doesn't work in my org (with a namespace) and it works in my org without a namespace.
I've tried prefixing with the namespace but it doesn't seem to make a difference. Namely:
<aura:attribute name="wontWork" type="MyNamespace.TestSub.SubOne" />
Am I missing something? Do I need to make the class global?