Architecting Angular Applications with Redux, RxJS, and NgRx : Learn to build Redux style high-performing applications with Angular 6.
Managing the state of large-scale web applications is a highly challenging task with the need to align different components, backends, and web workers harmoniously. When it comes to Angular, you can use NgRx, which combines the simplicity of Redux with the reactive programming power of RxJS to build...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2018.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; Packt Upsell; Foreword; Contributors; Table of Contents; Preface; Chapter 1: Quick Look Back at Data Services for Simple Apps; Model-View-Controller
- the pattern we all know; Cohesion and coupling
- establishing a common language; Explaining the components of MVC; The model; The view; The controller; Interactions
- the behavior between the components; MVC summary; An MVC flow in Angular; The model; The component
- a controller and a building block; First responder to a route; Used as a building block; Components from an architectural standpoint.
- NgModule
- our new facade (and some other bits)Using ES2015 modules; Consuming a module; An Angular example; Multiple exports; The default import/export; Renaming imports; The service; Service without dependencies; Service with dependencies; Dependency Injection; Dependency Injection in Angular using providers; Overriding an existing construct; Overriding at runtime; Overriding constants; Resolving your dependencies with @Injectable; Fetching and persisting data with HTTP
- introducing services with Observables; Fetching data with the HTTP service; Summary.
- Chapter 2: 1.21 Gigawatt
- Flux Pattern ExplainedCore concepts overview; A uniform data flow; Action
- capture the intent; Dispatcher
- the spider in the web; Listening to the dispatcher; The store
- managing state, data retrieval, and callbacks; The view; Demoing a uniform data flow; Creating a selection view; Adding the dispatcher; Adding the store; Adding a selected view; Running the demo; Adding more actions to our flow; Cleaning up the view; Cleaning up the store; Adding EventEmitter; Adding to and cleaning up the register method; Further improvements; Adding immutability; Summarizing.
- Adding AJAX callsAn even bigger solution; Summary; Chapter 3: Asynchronous Programming; The callback pattern; The callback pattern on the web; The callback pattern in Node.js; Problems with structuring async code
- callback hell; Promises; Thenables; Handling rejected promises; Chaining
- dealing with several promises; Asynchronous libraries; Async library; async.map(); async.parallel(); async.series(); Async/await; Summary; Chapter 4: Functional Reactive Programming; Functional programming versus imperative programming; Imperative programming versus declarative programming.
- First-class higher-order functionsPure functions; Recursion; No more loops; Reoccurring pattern; Summarise; Count; Width; Asynchronous data streams; Comparing lists to async streams
- preparing for RxJS; Combining the functional programming paradigm with streams; Projection; Filtering; Combining mindsets; Summary; Chapter 5: RxJS Basics; Observer pattern; RxJS core concepts; Observable and Observer; Producer; Observable error and completion; Operator; Creating Observables; Creation operators; of(); interval(); from(); fromEvent(); bindCallback(); Cleanup; Subscriptions.