I was going through the test cases written by my team members. What I observed was at some places they've used TestBed.inject(serviceName) for injecting the service and at some places they've used fixture.debugElement.injector.get(serviceName). Can somebody tell me the difference between these two? Also what is the correct way of injecting services?
For eg:
let abc: ABCService
Technique 1: abc = TestBed.inject(ABCService) Technique 2: abc = fixture.debugElement.injector.get(ABCSerice)
Thanks in Advance