Standalone Services
Introduction
Section titled “Introduction”Services in standalone apps work the same way, using @Injectable with providedIn or providers arrays.
Example
Section titled “Example”@Injectable({ providedIn: 'root' })export class UserService { // Tree-shakeable singleton}
// Component-level providers@Component({ providers: [FeatureService], standalone: true})export class FeatureComponent { }Summary
Section titled “Summary”Standalone doesn’t change how services work — just how they’re provided.”