gibo gibo - 3 years ago 257
TypeScript Question

injector inside an angular2 decorator

I have been writing a custom method decorator in typescript for Angular2.

The decorator needs to have access to the 'ApplicationRef'.

Is it possible to inject into method decorators? If not, how else can i access the applicationRef?

Answer Source

After doing much research it doesn't seem that this is possible.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download