When an interviewer asks, "What is a singleton service?" they don't want the definition. They want to know: "Does this candidate understand hierarchical injectors, scope, and memory management?"
Do not say: "I know Angular."
export class UserListComponent private searchSubject = new BehaviorSubject<string>(''); public search$ = this.searchSubject.asObservable(); Decoded Frontend - Angular Interview Hacking