What Is @injectable ProvidedIn Root?

What Is @injectable ProvidedIn Root? What exactly does providedIn do? Determines which injectors will provide the injectable, by either associating it with an @NgModule or other InjectorType, or by specifying that this injectable should be provided in the ‘root’ injector, which will be the application-level injector in most apps. What does providedIn root do? What