In Angular >= 7, is there any advantage to using @Inject over declaring a class @Injectable?

前端 未结 0 519
南笙
南笙 2020-12-30 02:20

I have seen what seem like older Angular examples in which dependency injection is done using the "@Inject" annotation ...

import { Component, Injec         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题