Let's say I have a Lightning component client side controller that does some calculation on initialization based on attributes that were set but it isn't going to be rendered it's just internal information about the component. I don't want to create an attribute in the markup I just want to save it for later access in event handlers. What's the proper way to do that? I'm thinking something like this but there doesn't seem to be any documentation about it.
({
doInit : function(cmp, event, helper) {
var c = cmp.get("v.a") + cmp.get("v.b");
cmp.setData("c",c);
}
})
As a side not there is very little documentation on the javascript objects that are available and their usage in the lightning docs. Thanks for any help!