title: Angular | Inject service into decorator
body: <p>I am trying to inject a service into a decorator function in which I am creating, this is so I can get the contents that are stored inside of variables.</p>
  
  <p>I currently have a basic decorator setup.</p>
  
  <pre><code>export function canEdit(editName: string, service: Service) {
        return function (constructor: any) {
            console.log(constructor);
        }
  }
  </code></pre>
  
  <p>Where I am using this it is asking me for the second parameter, which obviously needs to be dependency injected.</p>
  
  <p>I have also tried the <code>@Inject(Service)</code> which isn't allowed within functions.</p>
  
  <p>Is there a way that I can do this?</p>
  
  <p>Or is it possible to get the parent classes variables within the decorator?</p>