TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
21
To review
0
TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
21
To review
0
21 questions
Easy
0 vote126 runs0 comment
Hard
0 vote113 runs0 comment
Hard
0 vote103 runs1 comment
Medium
0 vote100 runs0 comment
Hard
0 vote96 runs0 comment
Medium
0 vote94 runs0 comment
Medium
0 vote94 runs0 comment
How is this way of doing called? ```ts interface UserData { [key: string]: any; } class UserDataService { private userData: BehaviorSubject<UserData> = new BehaviorSubject({}); private userData$: Observable<UserData> = this.userData.asObservable(); public setUserData(userData: UserData) { this.userData.next(userData); } public getUserData(): Observable<UserData> { return this.userData$; } public getUserDataByKey(key: string) { return this.userData$.pipe(map((userData) => userData[key])); } } ```
Amine Bouchamat Sep 5, 2022
Hard
0 vote93 runs0 comment
Easy
0 vote93 runs0 comment