Angular - Services and Dependency Injection
Identify the error in this service declaration:
@Injectable({
providedIn: root
})
export class LoggerService {} @Injectable({
providedIn: root
})
export class LoggerService {}@Injectable is correct, constructor is optional, and providedIn is valid here.providedIn [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions