You need to sign in to do that
Don't have an account?
Sergey Volinets
I can't add custom apex class to type of aura:attribute.
I can't add custom apex class to type of aura:attribute.
I have no idea what happens.
And Apex
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; } }
Is it possible with inner classes? Yes, I believe it is, but how?
i write a post on it that how to access apex class property in lightning component
go to below link
https://teachforce.wordpress.com/2016/11/17/how-to-access-apex-class-property-in-lightning-component/
i hope it helps you
thanks
let me infome if it helps you :)
http://bobbuzzard.blogspot.in/2015/12/lightning-component-wrapper-classes.html
thanks
https://success.salesforce.com/ideaView?id=0873A0000003OsmQAE
<aura:attribute name="attributeName" type="LightningComponentController.InnerClass"/>