Hi Navaneetha,

This is not an angular issue, but a core language feature of ES2015 module 
system. Doing something like this is made very difficult on purpose. There 
is a whole slew of problems and caveats with using eval (or it's sibling 
new Function) alone. Mixing it into the ES2015 module system doesn't make 
those go away. In fact, it makes it even harder to do. 

If you really need a global function for this, I would create a class int 
the global scope like this:
class GlobalFunctions {
public exposedFn: Function = (i) => i;
public setFn= (fn: Function) => this.exposedFn = fn;
}

in your PivotGrid you can then use Globalfunctions.exposedFn(..)
and in your code you can simply assign a local function to there using 
GlobalFunctions.setFn(functionName)

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to