Class is using Angular features but is not decorated. Please add an explicit Angular decorator. code example
Example: Class is using Angular features but is not decorated. Please add an explicit Angular decorator.
After angular 10, all the class with service function needs to inject:
@Injectable() //reason to satisfy the compiler.