Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- of({items: [1, 2, 3]})
- .pipe(
- switchMap(response => response.items),
- map(item => item * 2),
- toArray(),
- )
- .subscribe(items => this.items = items);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement