Answers for "Class is using Angular features but is not decorated. Please add an explicit Angular decorator."

0

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.
Posted by: Guest on March-17-2021

Code answers related to "Class is using Angular features but is not decorated. Please add an explicit Angular decorator."

Code answers related to "Javascript"

Browse Popular Code Answers by Language