@Injectable
services, utilizing the new property/value combo providedIn: "root"
, Angular handles the rest and appropriately provides you an instance of that service, without you having to worry about lazy loading, bundling or providing this service in any particular Module.MyService
into their constructors, will actually share that value.providers
field in the Component Decorator, any services you pass into that array, will be uniquely instantiated for that particular component!