Reactive Patterns with RxJS for Angular: A practical guide to managing your Angular application’s data reactively and efficiently using RxJS 7
Book information
Description
Title page Copyright and Credits Dedication Contributors Table of Contents Preface Part 1 – Introduction Chapter 1: The Power of the Reactive Paradigm Technical requirements Exploring the pillars of reactive programming Data streams Observer patterns Using RxJS in Angular and its advantages The HTTP client module The router module Reactive forms The event emitter The async pipe Learning about the marble diagram – our secret weapon Summary Chapter 2: RxJS 7 – The Major Features Technical requirements Exploring the bundle size improvements Reviewing the TypeScript typing improvements Understanding the toPromise() deprecation The firstValueFrom() method The lastValueFrom() method Empty errors Highlighting API consistency improvements Summary Chapter 3: A Walkthrough of the Application Technical requirements Our app's user stories View one – the landing page View two – the new recipe interface View three – the My Recipes interface View four – the My Favourites interface View five – the modify recipe interface View six – the recipe details interface Our app's architecture The components overview Summary Part 2 – A Trip into Reactive Patterns Chapter 4: Fetching Data as Streams Technical requirements Defining the requirement Exploring the classic pattern for fetching data Defining the structure of your data Creating an Angular service Retrieving the data through a method Injecting and subscribing to the service in your component Displaying the data in the template Managing unsubscriptions Exploring the reactive pattern for fetching data Retrieving data as streams Defining the stream in your component Using the async pipe in your template Highlighting the advantages of the reactive pattern Using the declarative approach Using the change detection strategy of OnPush Wrapping up Summary Chapter 5: Error Handling Technical requirements Understanding the anatomy of an Observable Exploring error handling patterns and strategies Handling error operators The catchError operator The delayWhen operator Error handling in action Summary Chapter 6: Combining Streams Technical requirements Defining the requirement Exploring the imperative pattern for filtering data A look at the filter component A look at the recipes list component Exploring the declarative pattern for filtering data The combineLatest operator The declarative pattern pillars Emitting a value when an action occurs Summary Chapter 7: Transforming Streams Technical requirements Defining the requirement Exploring the imperative pattern for autosave Exploring the reactive pattern for autosave Higher-order observables Higher-order mapping operators The concatMap operator Learning about other useful higher-order mapping operators The mergeMap operator The switchMap operator The exhaustMap operator Summary Part 3 – Multicasting Takes You to New Places Chapter 8: Multicasting Essentials Technical requirements Explaining Multicasting versus Unicasting Producer A cold observable A hot observable Exploring Subjects A plain Subject ReplaySubject BehaviorSubject Highlighting Multicasting operators Summary Chapter 9: Caching Streams Technical requirements Defining the requirement Learning about using the reactive pattern to cache streams Exploring the RxJS 7 recommended pattern to cache streams Highlighting the use cases of caching streams Summary Chapter 10: Sharing Data between Components Technical requirements Defining the requirement Exploring the reactive pattern to share data Step one – creating a shared service Step two – updating the last-selected recipe Step three – consuming the last-selected recipe Highlighting other ways for sharing data Summary Chapter 11: Bulk Operations Technical requirements Defining the requirement Learning about the reactive pattern for bulk operations The forkJoin operator The pattern in action Learning about the reactive pattern for tracking progress Summary Chapter 12: Processing Real-Time Updates Technical requirements Defining the requirement Learning the reactive pattern for consuming real-time messages The WebSocketSubject behavior Connection management Putting the pattern into action Learning the reactive pattern for handling reconnection Retrying the reconnection Summary Part 4 – Final Touch Chapter 13: Testing RxJS Observables Technical requirements Learning about the subscribe and assert pattern Learning about the marble testing pattern Understanding the syntax Implementing marble tests Highlighting testing streams using HttpClientTestingModule Summary Index About Packt Other Books You May Enjoy
Similar books
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF
Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.
2022 · PDF
The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians
1809 · PDF
Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix
2008 · PDF