I am learning Angular and caught a little in dependency injections. On the website it says that the decorator @Injectable () must have a service provider declared. Something like this:
@Injectable ({ providedIn: 'root', }) But when I put this in the IDE accuses error, saying that the decorator expects the arguments and has a gift, and the project does not work. How do I resolve this?