I have the following attribute in my lightning component
<aura:attribute name="serverList" type="Opleiding__c[]"/>
I can call this in my javascript controller with
var serverList = component.get("v.serverList");
I want to be able to pass its value to my javascript helper
I tried in my helper
({
selectedTrue : function(serverList) {..}
})
or
({
selectedTrue : function(serverList){
var serverList = component.get("v.serverList");}
})
Both do not work, am i missing something?