Find out caller function in Angular2, Typescript
angular, ionic2
Solution
I know this is a bit late, but I just had the same problem and hopefully this will help someone else.
You can produce a stack trace by doing
console.log((new Error).stack);
That will show you which function called your particular function
Problem
I want to find out the caller function of a particular function in my angular2/ionic2 project.. No luck with ``` arguments.callee.caller.toString() ``` Any idea?