I am having a callback function in angular like below.
blob= "(function(params1, params2, this.clientCallback) {})();";
serverBundle = eval(blob); // evaluating the above received bundle file as a blob.
clientCallback() { } //unable to access any thing which is outside this block. like.. 'this', 'httpClient' etc..
// calling above evaluated method and passing the callback method here.
serverBundle(params1, params2, this.clientCallback);
trying to understand that how can I access the angular scope inside 'clientCallback()' method?
Please help. Thanks!