Angular依赖注入:类“AnotherProductService”错误实现类“ProductService”。你是想扩展“ProductService”并将其成员作为子类继承吗?

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/h273979586/article/details/79506749

在做Angular依赖注入实例时候出现一个问题“类“AnotherProductService”错误实现类“ProductService”。你是想扩展“ProductService”并将其成员作为子类继承吗?”
于是找到解决本问题的方法,由于小编刚入门所以不能给大家提供更多的解释,只提出解决方法

1.loggerService


2.ProductService


3.AnotherProductService


4.Appmodule_providers


猜你喜欢

转载自blog.csdn.net/h273979586/article/details/79506749