I am not sure if there's a way to call multiple methods using the expression syntax, but even if its there I would suggest you
- use a wrapper method which internally calls your required methods and
- then you call the wrapper method in the expression.
This will help you if you want to reuse it in different places and also in future if you need to add any validation between the method calls or do some additional stuff you can simply do it in one place.
so it will be like
markup
<ltng:require scripts="/resource/unid__jQuery,/resource/unid__highchart" afterScriptsLoaded="{!c.myMethod}" />
controller
({
generateChart : function() {
console.log("in generateChart");
},
readData : function() {
console.log("in readData");
},
myMethod : function(){
generateChart();
readData();
}
})
EDIT :
I didn't test this code. If its not possible to call the controller methods directly within each other (sounds silly), may be we can try moving them to helper.js and call them if possible.
The key takeaway is the concept of calling multiple methods by using a wrapper method not the exact syntax.