简体   繁体   中英

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?

经过大量研究后,这似乎不可能。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM