I meant the variable of the calling page, something like
myCallbackFunction = function(_params) {
return new Promise((resolve, reject) => {
this.test = _params;
resolve();
});
}
Where this.test is a variable of the calling page.
But I solve the issue with a service, have to go forward.