@Service()
Also written: @Injectable, @Injectable({ providedIn: "root" }), providedIn root
The decorator that marks a class as an app-wide service, so Angular makes one shared copy of it. `@Injectable({ providedIn: "root" })` is the older spelling with the same meaning.