Quantcast
Channel: Angular test Class with service dependency - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Naren Murali for Angular test Class with service dependency

Since you are using MyClass as a component, you need the @Component decorator to initialize it as a component so we can create a dummy class with the component decorator and inherit all the contents of...

View Article



Angular test Class with service dependency

I'm trying to test a plain class (not a component) in Angular which has a service dependency and a separate constructor argument. I've mirrored the docs for component testing with a dependency, but I...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images