The angular docs recommend registering a service with the container 1) in the root scope, generally, or 2) in the scope of a particular module.
So in the general case, like this:
@Injectable({ providedIn: "root" })
However I see lots of code like this:
@Injectable()
In that case, in which scope will the service be registered? What are the implications of not specifying a scope, and how does that affect tree shaking?