I´m developing an ionic2
application, and I want to print my current method name on console.
Example:
constructor(private myclass: Myclass) {
console.log(<methodname>);
// in this case should be constructor
}
How can I do this?
I´m developing an ionic2
application, and I want to print my current method name on console.
Example:
constructor(private myclass: Myclass) {
console.log(<methodname>);
// in this case should be constructor
}
How can I do this?