带有@Component装饰器的Angular Injectable()装饰器

时间:2019-02-13 12:48:16

标签: angular

我找不到包含的组件装饰器对@Injectable装饰器的引用。

当我搜索时,我发现以下内容 “默认情况下,组件可以注入@Component()(或@Directive())包括@Injectable()”

@链接到我发现的内容 Component as Injectable?

但是当我检查@Component和@Directive时,我没有找到对@Injectoable的引用。

能帮我理解吗?

0 个答案:

没有答案