Answer
Angular services store shared logic and data. When providedIn: root is used, the service becomes a singleton, shared across the entire application unless scoped locally.
Angular services store shared logic and data. When providedIn: root is used, the service becomes a singleton, shared across the entire application unless scoped locally.
Sign in to access all features and personalize your learning experience.
Source: SugharaIQ