• mxstrand
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 1
    Replies
I can't add custom apex class to type of aura:attribute.

I have no idea what happens.
<aura:component controller="CVP.TestTypes">
    
    <aura:attribute name="products" type="CVP.TestClass[]"/>

</aura:component>

And Apex
 
public class TestTypes {
    public class TestClass {
        @AuraEnabled
        public String name = 'Stan';
        @AuraEnabled
    	public Integer age = 12;
    }
}