You want to create a facade service that combines data from UserService and SettingsService and exposes a single observable userSettings$. Which approach correctly implements this?
hard📝 Application Q15 of 15
Angular - Advanced Patterns
You want to create a facade service that combines data from UserService and SettingsService and exposes a single observable userSettings$. Which approach correctly implements this?
class UserSettingsFacade {
userSettings$: Observable<UserSettings>;
constructor(private userService: UserService, private settingsService: SettingsService) {
// Fill in here
}
}