title: Typescript custom decorators : context of this
body: <p>I am creating a custom decorator that will run decorated functions on RxJS events. </p>
  
  <p>So far so good : my issue comes when the function is actually ran : the context of the <code>this</code> object is lost. </p>
  
  <p>I've been looking for a solution for the past day but I can't seem to find it. </p>
  
  <p><a href="https://stackblitz.com/edit/angular-uzf1ch?file=src%2Fapp%2Fhello.component.ts" rel="nofollow noreferrer">Here is a stackblitz</a> reproducing the issue. The goal is to see <code>Angular</code> in the console, coming from <code>this.name</code>. </p>