0
I’m learning Angular, and I’ve had a little bit of addiction injections. On the site it says that the @Injectable() decorator must have a declared service provider. Something like this:
@Injectable({ providedIn: 'root', }) But when I put it the IDE accuses error, saying that the decorator expects 0 arguments and has a gift, and the project does not work. How do I fix this?
Maybe you didn’t declare it as Provider in the app.module
– Lucas Brogni