Skip to Main Content
Mastering TypeScript 3 - Third Edition
book

Mastering TypeScript 3 - Third Edition

by Nathan Rozentals
February 2019
Beginner content levelBeginner
694 pages
18h 4m
English
Packt Publishing
Content preview from Mastering TypeScript 3 - Third Edition

Observables – forkJoin

Our work with the Board List screen is not quite complete. Along with a set of sizes that are related to a board, each board also has a set of board types. Remember that a board can be classified as either a Wave board, a Freestyle board, or a Slalom board, or a combination of all three. This introduces another one-to-many relationship between a board and its types, along with the existing one-to-many board to board sizes relationship. We already have a REST endpoint that will return the types for each board, and can therefore replicate our concatMap functionality to retrieve the list of board types in a similar manner, as follows:

this.boardService.getBoardsList().subscribe((result: IBoardExtended[]) => { let boardSizes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The TypeScript Workshop

The TypeScript Workshop

Ben Grynhaus, Jordan Hudgens, Rayon Hunte, Matt Morgan, Wekoslav Stefanovski

Publisher Resources

ISBN: 9781789536706Supplemental Content